Share via


AjaxExtensions.BeginForm Method

Definition

Overloads

BeginForm(AjaxHelper, String, String, Object, AjaxOptions)

Writes an opening <form> tag to the response.

BeginForm(AjaxHelper, String, String, RouteValueDictionary, AjaxOptions, IDictionary<String,Object>)

Writes an opening <form> tag to the response.

BeginForm(AjaxHelper, String, String, Object, AjaxOptions, Object)

Writes an opening <form> tag to the response.

BeginForm(AjaxHelper, String, String, RouteValueDictionary, AjaxOptions)

Writes an opening <form> tag to the response.

BeginForm(AjaxHelper, String, Object, AjaxOptions, Object)

Writes an opening <form> tag to the response.

BeginForm(AjaxHelper, String, RouteValueDictionary, AjaxOptions, IDictionary<String,Object>)

Writes an opening <form> tag to the response.

BeginForm(AjaxHelper, String, String, AjaxOptions)

Writes an opening <form> tag to the response.

BeginForm(AjaxHelper, String, Object, AjaxOptions)

Writes an opening <form> tag to the response.

BeginForm(AjaxHelper, String, RouteValueDictionary, AjaxOptions)

Writes an opening <form> tag to the response.

BeginForm(AjaxHelper, String, AjaxOptions)

Writes an opening <form> tag to the response.

BeginForm(AjaxHelper, AjaxOptions)

Writes an opening <form> tag to the response.

BeginForm(AjaxHelper, String, String, Object, AjaxOptions)

Writes an opening <form> tag to the response.

public static System.Web.Mvc.Html.MvcForm BeginForm (this System.Web.Mvc.AjaxHelper ajaxHelper, string actionName, string controllerName, object routeValues, System.Web.Mvc.Ajax.AjaxOptions ajaxOptions);
static member BeginForm : System.Web.Mvc.AjaxHelper * string * string * obj * System.Web.Mvc.Ajax.AjaxOptions -> System.Web.Mvc.Html.MvcForm
<Extension()>
Public Function BeginForm (ajaxHelper As AjaxHelper, actionName As String, controllerName As String, routeValues As Object, ajaxOptions As AjaxOptions) As MvcForm

Parameters

ajaxHelper
AjaxHelper

The AJAX helper.

actionName
String

The name of the action method that will handle the request.

controllerName
String

The name of the controller.

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

ajaxOptions
AjaxOptions

An object that provides options for the asynchronous request.

Returns

An opening <form> tag.

Applies to

BeginForm(AjaxHelper, String, String, RouteValueDictionary, AjaxOptions, IDictionary<String,Object>)

Writes an opening <form> tag to the response.

public static System.Web.Mvc.Html.MvcForm BeginForm (this System.Web.Mvc.AjaxHelper ajaxHelper, string actionName, string controllerName, System.Web.Routing.RouteValueDictionary routeValues, System.Web.Mvc.Ajax.AjaxOptions ajaxOptions, System.Collections.Generic.IDictionary<string,object> htmlAttributes);
static member BeginForm : System.Web.Mvc.AjaxHelper * string * string * System.Web.Routing.RouteValueDictionary * System.Web.Mvc.Ajax.AjaxOptions * System.Collections.Generic.IDictionary<string, obj> -> System.Web.Mvc.Html.MvcForm
<Extension()>
Public Function BeginForm (ajaxHelper As AjaxHelper, actionName As String, controllerName As String, routeValues As RouteValueDictionary, ajaxOptions As AjaxOptions, htmlAttributes As IDictionary(Of String, Object)) As MvcForm

Parameters

ajaxHelper
AjaxHelper

The AJAX helper.

actionName
String

The name of the action method that will handle the request.

controllerName
String

The name of the controller.

routeValues
RouteValueDictionary

An object that contains the parameters for a route.

ajaxOptions
AjaxOptions

An object that provides options for the asynchronous request.

htmlAttributes
IDictionary<String,Object>

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

Returns

An opening <form> tag.

Applies to

BeginForm(AjaxHelper, String, String, Object, AjaxOptions, Object)

Writes an opening <form> tag to the response.

public static System.Web.Mvc.Html.MvcForm BeginForm (this System.Web.Mvc.AjaxHelper ajaxHelper, string actionName, string controllerName, object routeValues, System.Web.Mvc.Ajax.AjaxOptions ajaxOptions, object htmlAttributes);
static member BeginForm : System.Web.Mvc.AjaxHelper * string * string * obj * System.Web.Mvc.Ajax.AjaxOptions * obj -> System.Web.Mvc.Html.MvcForm
<Extension()>
Public Function BeginForm (ajaxHelper As AjaxHelper, actionName As String, controllerName As String, routeValues As Object, ajaxOptions As AjaxOptions, htmlAttributes As Object) As MvcForm

Parameters

ajaxHelper
AjaxHelper

The AJAX helper.

actionName
String

The name of the action method that will handle the request.

controllerName
String

The name of the controller.

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

ajaxOptions
AjaxOptions

An object that provides options for the asynchronous request.

htmlAttributes
Object

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

Returns

An opening <form> tag.

Applies to

BeginForm(AjaxHelper, String, String, RouteValueDictionary, AjaxOptions)

Writes an opening <form> tag to the response.

public static System.Web.Mvc.Html.MvcForm BeginForm (this System.Web.Mvc.AjaxHelper ajaxHelper, string actionName, string controllerName, System.Web.Routing.RouteValueDictionary routeValues, System.Web.Mvc.Ajax.AjaxOptions ajaxOptions);
static member BeginForm : System.Web.Mvc.AjaxHelper * string * string * System.Web.Routing.RouteValueDictionary * System.Web.Mvc.Ajax.AjaxOptions -> System.Web.Mvc.Html.MvcForm
<Extension()>
Public Function BeginForm (ajaxHelper As AjaxHelper, actionName As String, controllerName As String, routeValues As RouteValueDictionary, ajaxOptions As AjaxOptions) As MvcForm

Parameters

ajaxHelper
AjaxHelper

The AJAX helper.

actionName
String

The name of the action method that will handle the request.

controllerName
String

The name of the controller.

routeValues
RouteValueDictionary

An object that contains the parameters for a route.

ajaxOptions
AjaxOptions

An object that provides options for the asynchronous request.

Returns

An opening <form> tag.

Applies to

BeginForm(AjaxHelper, String, Object, AjaxOptions, Object)

Writes an opening <form> tag to the response.

public static System.Web.Mvc.Html.MvcForm BeginForm (this System.Web.Mvc.AjaxHelper ajaxHelper, string actionName, object routeValues, System.Web.Mvc.Ajax.AjaxOptions ajaxOptions, object htmlAttributes);
static member BeginForm : System.Web.Mvc.AjaxHelper * string * obj * System.Web.Mvc.Ajax.AjaxOptions * obj -> System.Web.Mvc.Html.MvcForm
<Extension()>
Public Function BeginForm (ajaxHelper As AjaxHelper, actionName As String, routeValues As Object, ajaxOptions As AjaxOptions, htmlAttributes As Object) As MvcForm

Parameters

ajaxHelper
AjaxHelper

The AJAX helper.

actionName
String

The name of the action method that will handle the request.

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

ajaxOptions
AjaxOptions

An object that provides options for the asynchronous request.

htmlAttributes
Object

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

Returns

An opening <form> tag.

Applies to

BeginForm(AjaxHelper, String, RouteValueDictionary, AjaxOptions, IDictionary<String,Object>)

Writes an opening <form> tag to the response.

public static System.Web.Mvc.Html.MvcForm BeginForm (this System.Web.Mvc.AjaxHelper ajaxHelper, string actionName, System.Web.Routing.RouteValueDictionary routeValues, System.Web.Mvc.Ajax.AjaxOptions ajaxOptions, System.Collections.Generic.IDictionary<string,object> htmlAttributes);
static member BeginForm : System.Web.Mvc.AjaxHelper * string * System.Web.Routing.RouteValueDictionary * System.Web.Mvc.Ajax.AjaxOptions * System.Collections.Generic.IDictionary<string, obj> -> System.Web.Mvc.Html.MvcForm
<Extension()>
Public Function BeginForm (ajaxHelper As AjaxHelper, actionName As String, routeValues As RouteValueDictionary, ajaxOptions As AjaxOptions, htmlAttributes As IDictionary(Of String, Object)) As MvcForm

Parameters

ajaxHelper
AjaxHelper

The AJAX helper.

actionName
String

The name of the action method that will handle the request.

routeValues
RouteValueDictionary

An object that contains the parameters for a route.

ajaxOptions
AjaxOptions

An object that provides options for the asynchronous request.

htmlAttributes
IDictionary<String,Object>

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

Returns

An opening <form> tag.

Applies to

BeginForm(AjaxHelper, String, String, AjaxOptions)

Writes an opening <form> tag to the response.

public static System.Web.Mvc.Html.MvcForm BeginForm (this System.Web.Mvc.AjaxHelper ajaxHelper, string actionName, string controllerName, System.Web.Mvc.Ajax.AjaxOptions ajaxOptions);
static member BeginForm : System.Web.Mvc.AjaxHelper * string * string * System.Web.Mvc.Ajax.AjaxOptions -> System.Web.Mvc.Html.MvcForm
<Extension()>
Public Function BeginForm (ajaxHelper As AjaxHelper, actionName As String, controllerName As String, ajaxOptions As AjaxOptions) As MvcForm

Parameters

ajaxHelper
AjaxHelper

The AJAX helper.

actionName
String

The name of the action method that will handle the request.

controllerName
String

The name of the controller.

ajaxOptions
AjaxOptions

An object that provides options for the asynchronous request.

Returns

An opening <form> tag.

Applies to

BeginForm(AjaxHelper, String, Object, AjaxOptions)

Writes an opening <form> tag to the response.

public static System.Web.Mvc.Html.MvcForm BeginForm (this System.Web.Mvc.AjaxHelper ajaxHelper, string actionName, object routeValues, System.Web.Mvc.Ajax.AjaxOptions ajaxOptions);
static member BeginForm : System.Web.Mvc.AjaxHelper * string * obj * System.Web.Mvc.Ajax.AjaxOptions -> System.Web.Mvc.Html.MvcForm
<Extension()>
Public Function BeginForm (ajaxHelper As AjaxHelper, actionName As String, routeValues As Object, ajaxOptions As AjaxOptions) As MvcForm

Parameters

ajaxHelper
AjaxHelper

The AJAX helper.

actionName
String

The name of the action method that will handle the request.

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

ajaxOptions
AjaxOptions

An object that provides options for the asynchronous request.

Returns

An opening <form> tag.

Applies to

BeginForm(AjaxHelper, String, RouteValueDictionary, AjaxOptions)

Writes an opening <form> tag to the response.

public static System.Web.Mvc.Html.MvcForm BeginForm (this System.Web.Mvc.AjaxHelper ajaxHelper, string actionName, System.Web.Routing.RouteValueDictionary routeValues, System.Web.Mvc.Ajax.AjaxOptions ajaxOptions);
static member BeginForm : System.Web.Mvc.AjaxHelper * string * System.Web.Routing.RouteValueDictionary * System.Web.Mvc.Ajax.AjaxOptions -> System.Web.Mvc.Html.MvcForm
<Extension()>
Public Function BeginForm (ajaxHelper As AjaxHelper, actionName As String, routeValues As RouteValueDictionary, ajaxOptions As AjaxOptions) As MvcForm

Parameters

ajaxHelper
AjaxHelper

The AJAX helper.

actionName
String

The name of the action method that will handle the request.

routeValues
RouteValueDictionary

An object that contains the parameters for a route.

ajaxOptions
AjaxOptions

An object that provides options for the asynchronous request.

Returns

An opening <form> tag.

Applies to

BeginForm(AjaxHelper, String, AjaxOptions)

Writes an opening <form> tag to the response.

public static System.Web.Mvc.Html.MvcForm BeginForm (this System.Web.Mvc.AjaxHelper ajaxHelper, string actionName, System.Web.Mvc.Ajax.AjaxOptions ajaxOptions);
static member BeginForm : System.Web.Mvc.AjaxHelper * string * System.Web.Mvc.Ajax.AjaxOptions -> System.Web.Mvc.Html.MvcForm
<Extension()>
Public Function BeginForm (ajaxHelper As AjaxHelper, actionName As String, ajaxOptions As AjaxOptions) As MvcForm

Parameters

ajaxHelper
AjaxHelper

The AJAX helper.

actionName
String

The name of the action method that will handle the request.

ajaxOptions
AjaxOptions

An object that provides options for the asynchronous request.

Returns

An opening <form> tag.

Applies to

BeginForm(AjaxHelper, AjaxOptions)

Writes an opening <form> tag to the response.

public static System.Web.Mvc.Html.MvcForm BeginForm (this System.Web.Mvc.AjaxHelper ajaxHelper, System.Web.Mvc.Ajax.AjaxOptions ajaxOptions);
static member BeginForm : System.Web.Mvc.AjaxHelper * System.Web.Mvc.Ajax.AjaxOptions -> System.Web.Mvc.Html.MvcForm
<Extension()>
Public Function BeginForm (ajaxHelper As AjaxHelper, ajaxOptions As AjaxOptions) As MvcForm

Parameters

ajaxHelper
AjaxHelper

The AJAX helper.

ajaxOptions
AjaxOptions

An object that provides options for the asynchronous request.

Returns

An opening <form> tag.

Applies to