Share via


ButtonsAndLinkExtensions.SubmitButton Method

 

Creates a submit button for your form.

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

Overload List

Name Description
System_CAPS_pubmethodSystem_CAPS_static SubmitButton(HtmlHelper)

Creates a submit button for your form.

System_CAPS_pubmethodSystem_CAPS_static SubmitButton(HtmlHelper, String)

Creates a submit button for your form.

System_CAPS_pubmethodSystem_CAPS_static SubmitButton(HtmlHelper, String, String)

Creates a submit button for your form.

System_CAPS_pubmethodSystem_CAPS_static SubmitButton(HtmlHelper, String, String, IDictionary<String, Object>)

Creates a submit button for your form.

System_CAPS_pubmethodSystem_CAPS_static SubmitButton(HtmlHelper, String, String, Object)

Creates a submit button for your form.

See Also

ButtonsAndLinkExtensions Class
Microsoft.Web.Mvc Namespace

Return to top

ButtonsAndLinkExtensions.SubmitButton Method (HtmlHelper)

Creates a submit button for your form.

Syntax

public static MvcHtmlString SubmitButton(
    this HtmlHelper helper
)
public:
[ExtensionAttribute]
static MvcHtmlString^ SubmitButton(
    HtmlHelper^ helper
)
static member SubmitButton : 
        helper:HtmlHelper -> MvcHtmlString
<ExtensionAttribute>
Public Shared Function SubmitButton (
    helper As HtmlHelper
) As MvcHtmlString

Parameters

Return Value

Type: System.Web.Mvc.MvcHtmlString

A MvcHtmlString that represents the submit button.

Return to top

ButtonsAndLinkExtensions.SubmitButton Method (HtmlHelper, String)

Creates a submit button for your form.

Syntax

public static MvcHtmlString SubmitButton(
    this HtmlHelper helper,
    string name
)
public:
[ExtensionAttribute]
static MvcHtmlString^ SubmitButton(
    HtmlHelper^ helper,
    String^ name
)
static member SubmitButton : 
        helper:HtmlHelper *
        name:string -> MvcHtmlString
<ExtensionAttribute>
Public Shared Function SubmitButton (
    helper As HtmlHelper,
    name As String
) As MvcHtmlString

Parameters

Return Value

Type: System.Web.Mvc.MvcHtmlString

A MvcHtmlString that represents the submit button.

Return to top

ButtonsAndLinkExtensions.SubmitButton Method (HtmlHelper, String, String)

Creates a submit button for your form.

Syntax

public static MvcHtmlString SubmitButton(
    this HtmlHelper helper,
    string name,
    string buttonText
)
public:
[ExtensionAttribute]
static MvcHtmlString^ SubmitButton(
    HtmlHelper^ helper,
    String^ name,
    String^ buttonText
)
static member SubmitButton : 
        helper:HtmlHelper *
        name:string *
        buttonText:string -> MvcHtmlString
<ExtensionAttribute>
Public Shared Function SubmitButton (
    helper As HtmlHelper,
    name As String,
    buttonText As String
) As MvcHtmlString

Parameters

Return Value

Type: System.Web.Mvc.MvcHtmlString

A MvcHtmlString that represents the submit button.

Return to top

ButtonsAndLinkExtensions.SubmitButton Method (HtmlHelper, String, String, IDictionary<String, Object>)

Creates a submit button for your form.

Syntax

public static MvcHtmlString SubmitButton(
    this HtmlHelper helper,
    string name,
    string buttonText,
    IDictionary<string, object> htmlAttributes
)
public:
[ExtensionAttribute]
static MvcHtmlString^ SubmitButton(
    HtmlHelper^ helper,
    String^ name,
    String^ buttonText,
    IDictionary<String^, Object^>^ htmlAttributes
)
static member SubmitButton : 
        helper:HtmlHelper *
        name:string *
        buttonText:string *
        htmlAttributes:IDictionary<string, Object> -> MvcHtmlString
<ExtensionAttribute>
Public Shared Function SubmitButton (
    helper As HtmlHelper,
    name As String,
    buttonText As String,
    htmlAttributes As IDictionary(Of String, Object)
) As MvcHtmlString

Parameters

Return Value

Type: System.Web.Mvc.MvcHtmlString

A MvcHtmlString that represents the submit button.

Return to top

ButtonsAndLinkExtensions.SubmitButton Method (HtmlHelper, String, String, Object)

Creates a submit button for your form.

Syntax

public static MvcHtmlString SubmitButton(
    this HtmlHelper helper,
    string name,
    string buttonText,
    object htmlAttributes
)
public:
[ExtensionAttribute]
static MvcHtmlString^ SubmitButton(
    HtmlHelper^ helper,
    String^ name,
    String^ buttonText,
    Object^ htmlAttributes
)
static member SubmitButton : 
        helper:HtmlHelper *
        name:string *
        buttonText:string *
        htmlAttributes:Object -> MvcHtmlString
<ExtensionAttribute>
Public Shared Function SubmitButton (
    helper As HtmlHelper,
    name As String,
    buttonText As String,
    htmlAttributes As Object
) As MvcHtmlString

Parameters

  • htmlAttributes
    Type: System.Object

    Any attributes you want set on the tag. Use anonymous-type declaration for this: new{class=cssclass}.

Return Value

Type: System.Web.Mvc.MvcHtmlString

A MvcHtmlString that represents the submit button.

Return to top