FormExtensions.BeginRouteForm FormExtensions.BeginRouteForm Method

Definition

Overloads

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)

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)

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>)

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)

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)

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)

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)

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)

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)

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>)

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)

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, 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.

public static System.Web.Mvc.Html.MvcForm BeginRouteForm (this System.Web.Mvc.HtmlHelper htmlHelper, string routeName, object routeValues, System.Web.Mvc.FormMethod method, object htmlAttributes);
static member BeginRouteForm : System.Web.Mvc.HtmlHelper * string * obj * System.Web.Mvc.FormMethod * obj -> System.Web.Mvc.Html.MvcForm
Parameters
htmlHelper
HtmlHelper HtmlHelper

The HTML helper instance that this method extends.

routeName
String String

The name of the route to use to obtain the form-post URL.

routeValues
Object Object

An object that contains the parameters for a route. The parameters are retrieved through reflection by examining the properties of the object. This object is typically created by using object initializer syntax.

method
FormMethod FormMethod

The HTTP method for processing the form, either GET or POST.

htmlAttributes
Object Object

An object that contains the HTML attributes to set for the element.

Returns

An opening <form> tag.

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.

public static System.Web.Mvc.Html.MvcForm BeginRouteForm (this System.Web.Mvc.HtmlHelper htmlHelper, string routeName, System.Web.Routing.RouteValueDictionary routeValues, System.Web.Mvc.FormMethod method);
static member BeginRouteForm : System.Web.Mvc.HtmlHelper * string * System.Web.Routing.RouteValueDictionary * System.Web.Mvc.FormMethod -> System.Web.Mvc.Html.MvcForm
Parameters
htmlHelper
HtmlHelper HtmlHelper

The HTML helper instance that this method extends.

routeName
String String

The name of the route to use to obtain the form-post URL.

routeValues
RouteValueDictionary RouteValueDictionary

An object that contains the parameters for a route

method
FormMethod FormMethod

The HTTP method for processing the form, either GET or POST.

Returns

An opening <form> tag.

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.

public static System.Web.Mvc.Html.MvcForm BeginRouteForm (this System.Web.Mvc.HtmlHelper htmlHelper, string routeName, System.Web.Mvc.FormMethod method, object htmlAttributes);
static member BeginRouteForm : System.Web.Mvc.HtmlHelper * string * System.Web.Mvc.FormMethod * obj -> System.Web.Mvc.Html.MvcForm
Parameters
htmlHelper
HtmlHelper HtmlHelper

The HTML helper instance that this method extends.

routeName
String String

The name of the route to use to obtain the form-post URL.

method
FormMethod FormMethod

The HTTP method for processing the form, either GET or POST.

htmlAttributes
Object Object

An object that contains the HTML attributes to set for the element.

Returns

An opening <form> tag.

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.

public static System.Web.Mvc.Html.MvcForm BeginRouteForm (this System.Web.Mvc.HtmlHelper htmlHelper, string routeName, System.Web.Mvc.FormMethod method, System.Collections.Generic.IDictionary<string,object> htmlAttributes);
static member BeginRouteForm : System.Web.Mvc.HtmlHelper * string * System.Web.Mvc.FormMethod * System.Collections.Generic.IDictionary<string, obj> -> System.Web.Mvc.Html.MvcForm
Parameters
htmlHelper
HtmlHelper HtmlHelper

The HTML helper instance that this method extends.

routeName
String String

The name of the route to use to obtain the form-post URL.

method
FormMethod FormMethod

The HTTP method for processing the form, either GET or POST.

htmlAttributes
IDictionary<String,Object>

An object that contains the HTML attributes to set for the element.

Returns

An opening <form> tag.

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.

public static System.Web.Mvc.Html.MvcForm BeginRouteForm (this System.Web.Mvc.HtmlHelper htmlHelper, string routeName, object routeValues, System.Web.Mvc.FormMethod method);
static member BeginRouteForm : System.Web.Mvc.HtmlHelper * string * obj * System.Web.Mvc.FormMethod -> System.Web.Mvc.Html.MvcForm
Parameters
htmlHelper
HtmlHelper HtmlHelper

The HTML helper instance that this method extends.

routeName
String String

The name of the route to use to obtain the form-post URL.

routeValues
Object Object

An object that contains the parameters for a route. The parameters are retrieved through reflection by examining the properties of the object. This object is typically created by using object initializer syntax.

method
FormMethod FormMethod

The HTTP method for processing the form, either GET or POST.

Returns

An opening <form> tag.

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.

public static System.Web.Mvc.Html.MvcForm BeginRouteForm (this System.Web.Mvc.HtmlHelper htmlHelper, string routeName, object routeValues);
static member BeginRouteForm : System.Web.Mvc.HtmlHelper * string * obj -> System.Web.Mvc.Html.MvcForm
Parameters
htmlHelper
HtmlHelper HtmlHelper

The HTML helper instance that this method extends.

routeName
String String

The name of the route to use to obtain the form-post URL.

routeValues
Object Object

An object that contains the parameters for a route. The parameters are retrieved through reflection by examining the properties of the object. This object is typically created by using object initializer syntax.

Returns

An opening <form> tag.

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.

public static System.Web.Mvc.Html.MvcForm BeginRouteForm (this System.Web.Mvc.HtmlHelper htmlHelper, string routeName, System.Web.Mvc.FormMethod method);
static member BeginRouteForm : System.Web.Mvc.HtmlHelper * string * System.Web.Mvc.FormMethod -> System.Web.Mvc.Html.MvcForm
Parameters
htmlHelper
HtmlHelper HtmlHelper

The HTML helper instance that this method extends.

routeName
String String

The name of the route to use to obtain the form-post URL.

method
FormMethod FormMethod

The HTTP method for processing the form, either GET or POST.

Returns

An opening <form> tag.

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.

public static System.Web.Mvc.Html.MvcForm BeginRouteForm (this System.Web.Mvc.HtmlHelper htmlHelper, System.Web.Routing.RouteValueDictionary routeValues);
static member BeginRouteForm : System.Web.Mvc.HtmlHelper * System.Web.Routing.RouteValueDictionary -> System.Web.Mvc.Html.MvcForm
Parameters
htmlHelper
HtmlHelper HtmlHelper

The HTML helper instance that this method extends.

routeValues
RouteValueDictionary RouteValueDictionary

An object that contains the parameters for a route

Returns

An opening <form> tag.

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.

public static System.Web.Mvc.Html.MvcForm BeginRouteForm (this System.Web.Mvc.HtmlHelper htmlHelper, string routeName);
static member BeginRouteForm : System.Web.Mvc.HtmlHelper * string -> System.Web.Mvc.Html.MvcForm
Parameters
htmlHelper
HtmlHelper HtmlHelper

The HTML helper instance that this method extends.

routeName
String String

The name of the route to use to obtain the form-post URL.

Returns

An opening <form> tag.

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.

public static System.Web.Mvc.Html.MvcForm BeginRouteForm (this System.Web.Mvc.HtmlHelper htmlHelper, object routeValues);
static member BeginRouteForm : System.Web.Mvc.HtmlHelper * obj -> System.Web.Mvc.Html.MvcForm
Parameters
htmlHelper
HtmlHelper HtmlHelper

The HTML helper instance that this method extends.

routeValues
Object Object

An object that contains the parameters for a route. The parameters are retrieved through reflection by examining the properties of the object. This object is typically created by using object initializer syntax.

Returns

An opening <form> tag.

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.

public static System.Web.Mvc.Html.MvcForm BeginRouteForm (this System.Web.Mvc.HtmlHelper htmlHelper, string routeName, System.Web.Routing.RouteValueDictionary routeValues, System.Web.Mvc.FormMethod method, System.Collections.Generic.IDictionary<string,object> htmlAttributes);
static member BeginRouteForm : System.Web.Mvc.HtmlHelper * string * System.Web.Routing.RouteValueDictionary * System.Web.Mvc.FormMethod * System.Collections.Generic.IDictionary<string, obj> -> System.Web.Mvc.Html.MvcForm
Parameters
htmlHelper
HtmlHelper HtmlHelper

The HTML helper instance that this method extends.

routeName
String String

The name of the route to use to obtain the form-post URL.

routeValues
RouteValueDictionary RouteValueDictionary

An object that contains the parameters for a route

method
FormMethod FormMethod

The HTTP method for processing the form, either GET or POST.

htmlAttributes
IDictionary<String,Object>

An object that contains the HTML attributes to set for the element.

Returns

An opening <form> tag.

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.

public static System.Web.Mvc.Html.MvcForm BeginRouteForm (this System.Web.Mvc.HtmlHelper htmlHelper, string routeName, System.Web.Routing.RouteValueDictionary routeValues);
static member BeginRouteForm : System.Web.Mvc.HtmlHelper * string * System.Web.Routing.RouteValueDictionary -> System.Web.Mvc.Html.MvcForm
Parameters
htmlHelper
HtmlHelper HtmlHelper

The HTML helper instance that this method extends.

routeName
String String

The name of the route to use to obtain the form-post URL.

routeValues
RouteValueDictionary RouteValueDictionary

An object that contains the parameters for a route

Returns

An opening <form> tag.

Applies to