FormExtensions FormExtensions FormExtensions Class

Definition

Represents support for HTML in an application.

public static class FormExtensions
type FormExtensions = class
Public Module FormExtensions
Inheritance
FormExtensionsFormExtensionsFormExtensions

Methods

BeginForm(HtmlHelper) BeginForm(HtmlHelper) BeginForm(HtmlHelper)

Writes an opening <form> tag to the response. The form uses the POST method, and the request is processed by the action method for the view.

BeginForm(HtmlHelper, String, String, Object, FormMethod, Object) BeginForm(HtmlHelper, String, String, Object, FormMethod, Object) BeginForm(HtmlHelper, String, String, Object, FormMethod, Object)

Writes an opening <form> tag to the response and sets the action tag to the specified controller, action, and route values. The form uses the specified HTTP method and includes the HTML attributes.

BeginForm(HtmlHelper, String, String, RouteValueDictionary, FormMethod) BeginForm(HtmlHelper, String, String, RouteValueDictionary, FormMethod) BeginForm(HtmlHelper, String, String, RouteValueDictionary, FormMethod)

Writes an opening <form> tag to the response, and sets the action tag to the specified controller, action, and route values from the route value dictionary. The form uses the specified HTTP method.

BeginForm(HtmlHelper, String, String, FormMethod, Object) BeginForm(HtmlHelper, String, String, FormMethod, Object) BeginForm(HtmlHelper, String, String, FormMethod, Object)

Writes an opening <form> tag to the response and sets the action tag to the specified controller and action. The form uses the specified HTTP method and includes the HTML attributes.

BeginForm(HtmlHelper, String, String, FormMethod, IDictionary<String,Object>) BeginForm(HtmlHelper, String, String, FormMethod, IDictionary<String,Object>) BeginForm(HtmlHelper, String, String, FormMethod, IDictionary<String,Object>)

Writes an opening <form> tag to the response and sets the action tag to the specified controller and action. The form uses the specified HTTP method and includes the HTML attributes from a dictionary.

BeginForm(HtmlHelper, String, String, Object, FormMethod) BeginForm(HtmlHelper, String, String, Object, FormMethod) BeginForm(HtmlHelper, String, String, Object, FormMethod)

Writes an opening <form> tag to the response and sets the action tag to the specified controller, action, and route values. The form uses the specified HTTP method.

BeginForm(HtmlHelper, String, String, RouteValueDictionary, FormMethod, IDictionary<String,Object>) BeginForm(HtmlHelper, String, String, RouteValueDictionary, FormMethod, IDictionary<String,Object>) BeginForm(HtmlHelper, String, String, RouteValueDictionary, FormMethod, IDictionary<String,Object>)

Writes an opening <form> tag to the response, and sets the action tag to the specified controller, action, and route values from the route value dictionary. The form uses the specified HTTP method, and includes the HTML attributes from the dictionary.

BeginForm(HtmlHelper, String, String, FormMethod) BeginForm(HtmlHelper, String, String, FormMethod) BeginForm(HtmlHelper, String, String, FormMethod)

Writes an opening <form> tag to the response and sets the action tag to the specified controller and action. The form uses the specified HTTP method.

BeginForm(HtmlHelper, String, String, Object) BeginForm(HtmlHelper, String, String, Object) BeginForm(HtmlHelper, String, String, Object)

Writes an opening <form> tag to the response, and sets the action tag to the specified controller, action, and route values. The form uses the POST method.

BeginForm(HtmlHelper, String, String) BeginForm(HtmlHelper, String, String) BeginForm(HtmlHelper, String, String)

Writes an opening <form> tag to the response and sets the action tag to the specified controller and action. The form uses the POST method.

BeginForm(HtmlHelper, RouteValueDictionary) BeginForm(HtmlHelper, RouteValueDictionary) BeginForm(HtmlHelper, RouteValueDictionary)

Writes an opening <form> tag to the response and includes the route values from the route value dictionary in the action attribute. The form uses the POST method, and the request is processed by the action method for the view.

BeginForm(HtmlHelper, Object) BeginForm(HtmlHelper, Object) BeginForm(HtmlHelper, Object)

Writes an opening <form> tag to the response and includes the route values in the action attribute. The form uses the POST method, and the request is processed by the action method for the view.

BeginForm(HtmlHelper, String, String, RouteValueDictionary) BeginForm(HtmlHelper, String, String, RouteValueDictionary) BeginForm(HtmlHelper, String, String, RouteValueDictionary)

Writes an opening <form> tag to the response, and sets the action tag to the specified controller, action, and route values from the route value dictionary. The form uses the POST method.

BeginRouteForm(HtmlHelper, String, Object, FormMethod, Object) BeginRouteForm(HtmlHelper, String, Object, FormMethod, Object) BeginRouteForm(HtmlHelper, String, Object, FormMethod, Object)

Writes an opening <form> tag to the response. When the user submits the form, the request will be processed by the route target.

BeginRouteForm(HtmlHelper, String, RouteValueDictionary, FormMethod) BeginRouteForm(HtmlHelper, String, RouteValueDictionary, FormMethod) BeginRouteForm(HtmlHelper, String, RouteValueDictionary, FormMethod)

Writes an opening <form> tag to the response. When the user submits the form, the request will be processed by the route target.

BeginRouteForm(HtmlHelper, String, FormMethod, Object) BeginRouteForm(HtmlHelper, String, FormMethod, Object) BeginRouteForm(HtmlHelper, String, FormMethod, Object)

Writes an opening <form> tag to the response. When the user submits the form, the request will be processed by the route target.

BeginRouteForm(HtmlHelper, String, FormMethod, IDictionary<String,Object>) BeginRouteForm(HtmlHelper, String, FormMethod, IDictionary<String,Object>) BeginRouteForm(HtmlHelper, String, FormMethod, IDictionary<String,Object>)

Writes an opening <form> tag to the response. When the user submits the form, the request will be processed by the route target.

BeginRouteForm(HtmlHelper, String, Object, FormMethod) BeginRouteForm(HtmlHelper, String, Object, FormMethod) BeginRouteForm(HtmlHelper, String, Object, FormMethod)

Writes an opening <form> tag to the response. When the user submits the form, the request will be processed by the route target.

BeginRouteForm(HtmlHelper, String, Object) BeginRouteForm(HtmlHelper, String, Object) BeginRouteForm(HtmlHelper, String, Object)

Writes an opening <form> tag to the response. When the user submits the form, the request will be processed by the route target.

BeginRouteForm(HtmlHelper, String, FormMethod) BeginRouteForm(HtmlHelper, String, FormMethod) BeginRouteForm(HtmlHelper, String, FormMethod)

Writes an opening <form> tag to the response. When the user submits the form, the request will be processed by the route target.

BeginRouteForm(HtmlHelper, RouteValueDictionary) BeginRouteForm(HtmlHelper, RouteValueDictionary) BeginRouteForm(HtmlHelper, RouteValueDictionary)

Writes an opening <form> tag to the response. When the user submits the form, the request will be processed by the route target.

BeginRouteForm(HtmlHelper, String) BeginRouteForm(HtmlHelper, String) BeginRouteForm(HtmlHelper, String)

Writes an opening <form> tag to the response. When the user submits the form, the request will be processed by the route target.

BeginRouteForm(HtmlHelper, Object) BeginRouteForm(HtmlHelper, Object) BeginRouteForm(HtmlHelper, Object)

Writes an opening <form> tag to the response. When the user submits the form, the request will be processed by the route target.

BeginRouteForm(HtmlHelper, String, RouteValueDictionary, FormMethod, IDictionary<String,Object>) BeginRouteForm(HtmlHelper, String, RouteValueDictionary, FormMethod, IDictionary<String,Object>) BeginRouteForm(HtmlHelper, String, RouteValueDictionary, FormMethod, IDictionary<String,Object>)

Writes an opening <form> tag to the response. When the user submits the form, the request will be processed by the route target.

BeginRouteForm(HtmlHelper, String, RouteValueDictionary) BeginRouteForm(HtmlHelper, String, RouteValueDictionary) BeginRouteForm(HtmlHelper, String, RouteValueDictionary)

Writes an opening <form> tag to the response. When the user submits the form, the request will be processed by the route target.

EndForm(HtmlHelper) EndForm(HtmlHelper) EndForm(HtmlHelper)

Renders the closing </form> tag to the response.

Applies to