Export (0) Print
Expand All

FormExtensions.BeginForm Method

Writes an opening <form> tag to the response, which will be handled by an action method.

  NameDescription
Public method Static member BeginForm(HtmlHelper) Writes an opening <form> tag to the response, which will be handled by an action method.
Public method Static member BeginForm(HtmlHelper, Object) Writes an opening <form> tag to the response, which will be handled by an action method.
Public method Static member BeginForm(HtmlHelper, RouteValueDictionary) Writes an opening <form> tag to the response, which will be handled by an action method.
Public method Static member BeginForm(HtmlHelper, String, String) Writes an opening <form> tag to the response, which will be handled by the specified action method.
Public method Static member BeginForm(HtmlHelper, String, String, Object) Writes an opening <form> tag to the response, which will be handled by the specified action method.
Public method Static member BeginForm(HtmlHelper, String, String, FormMethod) Writes an opening <form> tag to the response, which will be handled by the specified action method.
Public method Static member BeginForm(HtmlHelper, String, String, RouteValueDictionary) Writes an opening <form> tag to the response, which will be handled by the specified action method.
Public method Static member BeginForm(HtmlHelper, String, String, Object, FormMethod) Writes an opening <form> tag to the response, which will be handled by the specified action method.
Public method Static member BeginForm(HtmlHelper, String, String, FormMethod, IDictionary<String, Object>) Writes an opening <form> tag to the response, which will be handled by the specified action method.
Public method Static member BeginForm(HtmlHelper, String, String, FormMethod, Object) Writes an opening <form> tag to the response, which will be handled by the specified action method.
Public method Static member BeginForm(HtmlHelper, String, String, RouteValueDictionary, FormMethod) Writes an opening <form> tag to the response, which will be handled by the specified action method.
Public method Static member BeginForm(HtmlHelper, String, String, Object, FormMethod, Object) Writes an opening <form> tag to the response, which will be handled by the specified action method.
Public method Static member BeginForm(HtmlHelper, String, String, RouteValueDictionary, FormMethod, IDictionary<String, Object>) Writes an opening <form> tag to the response, which will be handled by the specified action method.
Top

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.

Community Additions

Show:
© 2015 Microsoft