HtmlHelperExtensions.BeginForm Method (HtmlHelper, String, String, Object, FormMethod, String, String, String, String, String, String, String, String, String, String)

 

Namespace:   Microsoft.Web.Mvc.Html
Assembly:  Microsoft.Web.Mvc (in Microsoft.Web.Mvc.dll)

Syntax

public static MvcForm BeginForm(
    this HtmlHelper htmlHelper,
    string actionName = null,
    string controllerName = null,
    object routeValues = null,
    FormMethod method = FormMethod.Post,
    string accept = null,
    string acceptCharset = null,
    string cssClass = null,
    string dir = null,
    string encType = null,
    string id = null,
    string lang = null,
    string name = null,
    string style = null,
    string title = null
)
public:
[ExtensionAttribute]
static MvcForm^ BeginForm(
    HtmlHelper^ htmlHelper,
    String^ actionName = null,
    String^ controllerName = null,
    Object^ routeValues = null,
    FormMethod method = FormMethod::Post,
    String^ accept = null,
    String^ acceptCharset = null,
    String^ cssClass = null,
    String^ dir = null,
    String^ encType = null,
    String^ id = null,
    String^ lang = null,
    String^ name = null,
    String^ style = null,
    String^ title = null
)
static member BeginForm : 
        htmlHelper:HtmlHelper *
        actionName:string = null *
        controllerName:string = null *
        routeValues:Object = null *
        method:FormMethod = FormMethod.Post *
        accept:string = null *
        acceptCharset:string = null *
        cssClass:string = null *
        dir:string = null *
        encType:string = null *
        id:string = null *
        lang:string = null *
        name:string = null *
        style:string = null *
        title:string = null -> MvcForm
<ExtensionAttribute>
Public Shared Function BeginForm (
    htmlHelper As HtmlHelper,
    actionName As String,
    controllerName As String,
    routeValues As Object,
    method As FormMethod,
    accept As String,
    acceptCharset As String,
    cssClass As String,
    dir As String,
    encType As String,
    id As String,
    lang As String,
    name As String,
    style As String,
    title As String
) As MvcForm

Parameters

Return Value

Type: System.Web.Mvc.Html.MvcForm

See Also

HtmlHelperExtensions Class
Microsoft.Web.Mvc.Html Namespace

Return to top