Compartir a través de


FormExtensions.BeginRouteForm Method

Include Protected Members
Include Inherited Members

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

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public methodStatic member 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 methodStatic member 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 methodStatic member 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 methodStatic member 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 methodStatic member 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 methodStatic member 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 methodStatic member 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 methodStatic member 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 methodStatic member 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 methodStatic member 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 methodStatic member 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 methodStatic member 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.

Top

Remarks

The BeginForm method renders a form that will be handled by a controller action method.

You can use this method in a using block. In that case, the method renders the closing </form> tag at the end of the using block.

See Also

Reference

FormExtensions Class

System.Web.Mvc.Html Namespace