API
Form Tag Helper
Generates a form action and, under applicable conditions, an antiforgery request token.
Formal Syntax & Structure
csharp syntaxcsharp
<form asp-action="Submit" method="post">...</form>Working Example
Example Snippetcsharp
// Documentary fragment; see linked lesson for context.<form asp-action="Submit" method="post">...</form>