共用方式為


AjaxExtensions.BeginForm Method

Include Protected Members
Include Inherited Members

Writes an opening <form> tag to the response.

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 BeginForm(AjaxHelper, AjaxOptions) Writes an opening <form> tag to the response.
Public methodStatic member BeginForm(AjaxHelper, String, AjaxOptions) Writes an opening <form> tag to the response.
Public methodStatic member BeginForm(AjaxHelper, String, Object, AjaxOptions) Writes an opening <form> tag to the response.
Public methodStatic member BeginForm(AjaxHelper, String, String, AjaxOptions) Writes an opening <form> tag to the response.
Public methodStatic member BeginForm(AjaxHelper, String, RouteValueDictionary, AjaxOptions) Writes an opening <form> tag to the response.
Public methodStatic member BeginForm(AjaxHelper, String, Object, AjaxOptions, Object) Writes an opening <form> tag to the response.
Public methodStatic member BeginForm(AjaxHelper, String, String, Object, AjaxOptions) Writes an opening <form> tag to the response.
Public methodStatic member BeginForm(AjaxHelper, String, String, RouteValueDictionary, AjaxOptions) Writes an opening <form> tag to the response.
Public methodStatic member BeginForm(AjaxHelper, String, RouteValueDictionary, AjaxOptions, IDictionary<String, Object>) Writes an opening <form> tag to the response.
Public methodStatic member BeginForm(AjaxHelper, String, String, Object, AjaxOptions, Object) Writes an opening <form> tag to the response.
Public methodStatic member BeginForm(AjaxHelper, String, String, RouteValueDictionary, AjaxOptions, IDictionary<String, Object>) Writes an opening <form> tag to the response.

Top

Remarks

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. The form is submitted asynchronously by using JavaScript.

See Also

Reference

AjaxExtensions Class

System.Web.Mvc.Ajax Namespace