FormExtensions.BeginForm Method (System.Web.Mvc.Html)

Switch View :
ScriptFree
.NET Framework Class Library
FormExtensions.BeginForm Method

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

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 method Static member BeginForm(HtmlHelper) Writes an opening <form> tag to the response. When the user submits the form, the request will be processed by an action method.
Public method Static member BeginForm(HtmlHelper, Object) Writes an opening <form> tag to the response. When the user submits the form, the request will be processed by an action method.
Public method Static member BeginForm(HtmlHelper, RouteValueDictionary) Writes an opening <form> tag to the response. When the user submits the form, the request will be processed by an action method.
Public method Static member BeginForm(HtmlHelper, String, String) Writes an opening <form> tag to the response. When the user submits the form, the request will be processed by an action method.
Public method Static member BeginForm(HtmlHelper, String, String, Object) Writes an opening <form> tag to the response. When the user submits the form, the request will be processed by an action method.
Public method Static member BeginForm(HtmlHelper, String, String, FormMethod) Writes an opening <form> tag to the response. When the user submits the form, the request will be processed by an action method.
Public method Static member BeginForm(HtmlHelper, String, String, RouteValueDictionary) Writes an opening <form> tag to the response. When the user submits the form, the request will be processed by an action method.
Public method Static member BeginForm(HtmlHelper, String, String, Object, FormMethod) Writes an opening <form> tag to the response. When the user submits the form, the request will be processed by an action method.
Public method Static member BeginForm(HtmlHelper, String, 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 an action method.
Public method Static member BeginForm(HtmlHelper, String, String, FormMethod, Object) Writes an opening <form> tag to the response. When the user submits the form, the request will be processed by an action method.
Public method Static member BeginForm(HtmlHelper, String, String, RouteValueDictionary, FormMethod) Writes an opening <form> tag to the response. When the user submits the form, the request will be processed by an action method.
Public method Static member BeginForm(HtmlHelper, String, String, Object, FormMethod, Object) Writes an opening <form> tag to the response. When the user submits the form, the request will be processed by an action method.
Public method Static member BeginForm(HtmlHelper, String, 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 an action method.
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 statement. In that case, the method renders the closing </form> tag at the end of the using block.

See Also

Reference

Community Content

kaisha55
Overloads
Well.....try clicking on them!  Then the overloads are defined.  Der.

MSMichiel
Overloads
Maybe hrusi is trying to say that it might be nice to have some documentation on the purpose of the different overloads.

hrusi
Look ma - C# has method overloading!

"Writes an opening <form> tag to the response. When the user submits the form, the request will be processed by an action method."
Really? I'm enlightened!!

What a joy to have 20 different methods that can do the job!!

Those arguments are just to show the C# supports method overloading, isn't it?

No? Oh, let me see I must have missed the manual.

The page clearly explains what the different overloads do, isn't it - "Writes an opening <form> tag to the response. When the user submits the form, the request will be processed by an action method." So stupid of me!