FormTagHelper FormTagHelper FormTagHelper Class

Definition

ITagHelper implementation targeting <form> elements.

[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("form", Attributes="asp-action")]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("form", Attributes="asp-antiforgery")]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("form", Attributes="asp-area")]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("form", Attributes="asp-controller")]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("form", Attributes="asp-route")]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("form", Attributes="asp-all-route-data")]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("form", Attributes="asp-route-*")]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("form", Attributes="asp-fragment")]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("form")]
public class FormTagHelper : Microsoft.AspNetCore.Razor.TagHelpers.TagHelper
type FormTagHelper = class
    inherit TagHelper
Public Class FormTagHelper
Inherits TagHelper
Inheritance
FormTagHelperFormTagHelperFormTagHelper
Attributes

Constructors

FormTagHelper(IHtmlGenerator) FormTagHelper(IHtmlGenerator) FormTagHelper(IHtmlGenerator)

Creates a new FormTagHelper.

Properties

Action Action Action

The name of the action method.

Antiforgery Antiforgery Antiforgery

Whether the antiforgery token should be generated.

Area Area Area

The name of the area.

Controller Controller Controller

The name of the controller.

Fragment Fragment Fragment

Gets or sets the URL fragment.

Generator Generator Generator
Method Method Method

The HTTP method to use.

Order Order Order
Page Page Page

The name of the page.

PageHandler PageHandler PageHandler

The name of the page handler.

Route Route Route

Name of the route.

RouteValues RouteValues RouteValues

Additional parameters for the route.

ViewContext ViewContext ViewContext

Methods

Init(TagHelperContext) Init(TagHelperContext) Init(TagHelperContext)

Initializes the ITagHelper with the given context. Additions to Items should be done within this method to ensure they're added prior to executing the children.

(Inherited from TagHelper)
Process(TagHelperContext, TagHelperOutput) Process(TagHelperContext, TagHelperOutput) Process(TagHelperContext, TagHelperOutput)
ProcessAsync(TagHelperContext, TagHelperOutput) ProcessAsync(TagHelperContext, TagHelperOutput) ProcessAsync(TagHelperContext, TagHelperOutput)

Asynchronously executes the TagHelper with the given context and output.

(Inherited from TagHelper)

Applies to