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 | |
---|---|---|
![]() ![]() |
SubmitButton(HtmlHelper) | Creates a submit button for your form. |
![]() ![]() |
SubmitButton(HtmlHelper, String) | Creates a submit button for your form. |
![]() ![]() |
SubmitButton(HtmlHelper, String, String) | Creates a submit button for your form. |
![]() ![]() |
SubmitButton(HtmlHelper, String, String, IDictionary<String, Object>) | Creates a submit button for your form. |
![]() ![]() |
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
helper
Type: System.Web.Mvc.HtmlHelperThe helper which we extend.
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
helper
Type: System.Web.Mvc.HtmlHelperThe helper which we extend.
name
Type: System.StringThe name.
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
helper
Type: System.Web.Mvc.HtmlHelperThe helper which we extend.
name
Type: System.StringThe name.
buttonText
Type: System.StringThe text for the button face.
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
helper
Type: System.Web.Mvc.HtmlHelperThe helper which we extend.
name
Type: System.StringName of the button.
buttonText
Type: System.StringThe text for the button face.
htmlAttributes
Type: System.Collections.Generic.IDictionary<String, Object>Dictionary of HTML settings.
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
helper
Type: System.Web.Mvc.HtmlHelperThe helper which we extend.
name
Type: System.StringName of the button.
buttonText
Type: System.StringThe text for the button face.
htmlAttributes
Type: System.ObjectAny 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