Class HtmlHelperFormExtensions
Extension methods for Microsoft.
Inheritance
Namespace: EPiServer.Web.Mvc.Html
Assembly: EPiServer.Cms.AspNetCore.HtmlHelpers.dll
Version: 12.0.3Syntax
public static class HtmlHelperFormExtensions : Object
Methods
BeginContentForm(IHtmlHelper)
Renders a <form> start tag to the response. The <form>'s action
attribute value will
match the current request.
Declaration
public static MvcForm BeginContentForm(this IHtmlHelper htmlHelper)
Parameters
Type | Name | Description |
---|---|---|
Microsoft. |
htmlHelper | The Microsoft. |
Returns
Type | Description |
---|---|
Microsoft. |
An Microsoft. |
Remarks
In this context, "renders" means the method writes its output using Microsoft.
BeginContentForm(IHtmlHelper, ContentReference, String, VirtualPathArguments, Nullable<FormMethod>, Nullable<Boolean>, Object)
Renders a <form> start tag to the response. When the user submits the form, the action with name Action will process the request.
Declaration
public static MvcForm BeginContentForm(this IHtmlHelper htmlHelper, ContentReference contentLink, string language, VirtualPathArguments virtualPathArguments, Nullable<FormMethod> method, Nullable<bool> antiforgery, object htmlAttributes)
Parameters
Type | Name | Description |
---|---|---|
Microsoft. |
htmlHelper | The Microsoft. |
Content |
contentLink | The content link which the form relates to |
System. |
language | The language for the content. |
Virtual |
virtualPathArguments | Virtual path arguments to control the url generation |
System. |
method | The HTTP method for processing the form, either GET or POST. |
System. |
antiforgery | If |
System. |
htmlAttributes | An System. |
Returns
Type | Description |
---|---|
Microsoft. |
BeginContentForm(IHtmlHelper, FormMethod)
Renders a <form> start tag to the response. When the user submits the form, the current action will process the request.
Declaration
public static MvcForm BeginContentForm(this IHtmlHelper htmlHelper, FormMethod method)
Parameters
Type | Name | Description |
---|---|---|
Microsoft. |
htmlHelper | The Microsoft. |
Microsoft. |
method | The HTTP method for processing the form, either GET or POST. |
Returns
Type | Description |
---|---|
Microsoft. |
An Microsoft. |
Remarks
In this context, "renders" means the method writes its output using Microsoft.
BeginContentForm(IHtmlHelper, FormMethod, Nullable<Boolean>, Object)
Renders a <form> start tag to the response. When the user submits the form, the current action will process the request.
Declaration
public static MvcForm BeginContentForm(this IHtmlHelper htmlHelper, FormMethod method, Nullable<bool> antiforgery, object htmlAttributes)
Parameters
Type | Name | Description |
---|---|---|
Microsoft. |
htmlHelper | The Microsoft. |
Microsoft. |
method | The HTTP method for processing the form, either GET or POST. |
System. |
antiforgery | If |
System. |
htmlAttributes | An System. |
Returns
Type | Description |
---|---|
Microsoft. |
An Microsoft. |
Remarks
In this context, "renders" means the method writes its output using Microsoft.
BeginContentForm(IHtmlHelper, FormMethod, Object)
Renders a <form> start tag to the response. When the user submits the form, the current action will process the request.
Declaration
public static MvcForm BeginContentForm(this IHtmlHelper htmlHelper, FormMethod method, object htmlAttributes)
Parameters
Type | Name | Description |
---|---|---|
Microsoft. |
htmlHelper | The Microsoft. |
Microsoft. |
method | The HTTP method for processing the form, either GET or POST. |
System. |
htmlAttributes | An System. |
Returns
Type | Description |
---|---|
Microsoft. |
An Microsoft. |
Remarks
In this context, "renders" means the method writes its output using Microsoft.
BeginContentForm(IHtmlHelper, Nullable<Boolean>)
Renders a <form> start tag to the response. The <form>'s action
attribute value will
match the current request.
Declaration
public static MvcForm BeginContentForm(this IHtmlHelper htmlHelper, Nullable<bool> antiforgery)
Parameters
Type | Name | Description |
---|---|---|
Microsoft. |
htmlHelper | The Microsoft. |
System. |
antiforgery | If |
Returns
Type | Description |
---|---|
Microsoft. |
An Microsoft. |
Remarks
In this context, "renders" means the method writes its output using Microsoft.
BeginContentForm(IHtmlHelper, Object)
Renders a <form> start tag to the response. When the user submits the form, the current action will process the request.
Declaration
public static MvcForm BeginContentForm(this IHtmlHelper htmlHelper, object routeValues)
Parameters
Type | Name | Description |
---|---|---|
Microsoft. |
htmlHelper | The Microsoft. |
System. |
routeValues | An System. |
Returns
Type | Description |
---|---|
Microsoft. |
An Microsoft. |
Remarks
In this context, "renders" means the method writes its output using Microsoft.
BeginContentForm(IHtmlHelper, String)
Renders a <form> start tag to the response. When the user submits the form, the action with name
actionName
will process the request.
Declaration
public static MvcForm BeginContentForm(this IHtmlHelper htmlHelper, string actionName)
Parameters
Type | Name | Description |
---|---|---|
Microsoft. |
htmlHelper | The Microsoft. |
System. |
actionName | The name of the action method. |
Returns
Type | Description |
---|---|
Microsoft. |
An Microsoft. |
Remarks
In this context, "renders" means the method writes its output using Microsoft.
BeginContentForm(IHtmlHelper, String, ContentReference)
Renders a <form> start tag to the response. When the user submits the form, the action with name
actionName
will process the request.
Declaration
public static MvcForm BeginContentForm(this IHtmlHelper htmlHelper, string actionName, ContentReference contentLink)
Parameters
Type | Name | Description |
---|---|---|
Microsoft. |
htmlHelper | The Microsoft. |
System. |
actionName | The name of the action method. |
Content |
contentLink | The content link which the form relates to |
Returns
Type | Description |
---|---|
Microsoft. |
An Microsoft. |
Remarks
In this context, "renders" means the method writes its output using Microsoft.
BeginContentForm(IHtmlHelper, String, ContentReference, String)
Renders a <form> start tag to the response. When the user submits the form, the action with name
actionName
will process the request.
Declaration
public static MvcForm BeginContentForm(this IHtmlHelper htmlHelper, string actionName, ContentReference contentLink, string language)
Parameters
Type | Name | Description |
---|---|---|
Microsoft. |
htmlHelper | The Microsoft. |
System. |
actionName | The name of the action method. |
Content |
contentLink | The content link which the form relates to |
System. |
language | The language for the content. |
Returns
Type | Description |
---|---|
Microsoft. |
An Microsoft. |
Remarks
In this context, "renders" means the method writes its output using Microsoft.
BeginContentForm(IHtmlHelper, String, ContentReference, String, Object)
Renders a <form> start tag to the response. When the user submits the form, the action with name
actionName
will process the request.
Declaration
public static MvcForm BeginContentForm(this IHtmlHelper htmlHelper, string actionName, ContentReference contentLink, string language, object htmlAttributes)
Parameters
Type | Name | Description |
---|---|---|
Microsoft. |
htmlHelper | The Microsoft. |
System. |
actionName | The name of the action method. |
Content |
contentLink | The content link which the form relates to |
System. |
language | The language for the content. |
System. |
htmlAttributes | An System. |
Returns
Type | Description |
---|---|
Microsoft. |
An Microsoft. |
Remarks
In this context, "renders" means the method writes its output using Microsoft.