Class PageDataTagHelper
Renders a hidden field to persist the page data context for a form action.
public class PageDataTagHelper : TagHelper
- Inheritance
-
objectTagHelperPageDataTagHelper
- Extension Methods
Constructors
PageDataTagHelper(IHtmlHelper)
Initializes a new instance of the PageDataTagHelper class.
public PageDataTagHelper(IHtmlHelper htmlHelper)
Parameters
htmlHelperIHtmlHelperThe HTML helper.
Exceptions
- ArgumentNullException
Throws when
htmlHelperisnull
Properties
ViewContext
The view context used to initialize Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper
[ViewContext]
[HtmlAttributeNotBound]
public ViewContext ViewContext { get; set; }
Property Value
- ViewContext
Methods
Process(TagHelperContext, TagHelperOutput)
Renders a hidden field to persist the page data context for a form action.
public override void Process(TagHelperContext context, TagHelperOutput output)
Parameters
contextTagHelperContextContains information associated with the current HTML tag.
outputTagHelperOutputA stateful HTML element used to generate an HTML tag.
See Also
TagHelper