ButtonsAndLinkExtensions.SubmitImage Method
Creates a submit button for your form using an image.
Namespace: Microsoft.Web.Mvc
Assembly: Microsoft.Web.Mvc (in Microsoft.Web.Mvc.dll)
Overload List
Name | Description | |
---|---|---|
![]() ![]() |
SubmitImage(HtmlHelper, String, String) | Creates a submit button for your form using an image. |
![]() ![]() |
SubmitImage(HtmlHelper, String, String, IDictionary<String, Object>) | Creates a submit button for your form using an image. |
![]() ![]() |
SubmitImage(HtmlHelper, String, String, Object) | Creates a submit button for your form using an image. |
See Also
ButtonsAndLinkExtensions Class
Microsoft.Web.Mvc Namespace
Return to top
ButtonsAndLinkExtensions.SubmitImage Method (HtmlHelper, String, String)
Creates a submit button for your form using an image.
Syntax
public static MvcHtmlString SubmitImage(
this HtmlHelper helper,
string name,
string imageSrc
)
public:
[ExtensionAttribute]
static MvcHtmlString^ SubmitImage(
HtmlHelper^ helper,
String^ name,
String^ imageSrc
)
static member SubmitImage :
helper:HtmlHelper *
name:string *
imageSrc:string -> MvcHtmlString
<ExtensionAttribute>
Public Shared Function SubmitImage (
helper As HtmlHelper,
name As String,
imageSrc As String
) As MvcHtmlString
Parameters
helper
Type: System.Web.Mvc.HtmlHelperThe helper which we extend.
name
Type: System.StringName of the button.
imageSrc
Type: System.StringThe URL for the image.
Return Value
Type: System.Web.Mvc.MvcHtmlString
A submit button for your form using an image.
Return to top
ButtonsAndLinkExtensions.SubmitImage Method (HtmlHelper, String, String, IDictionary<String, Object>)
Creates a submit button for your form using an image.
Syntax
public static MvcHtmlString SubmitImage(
this HtmlHelper helper,
string name,
string imageSrc,
IDictionary<string, object> htmlAttributes
)
public:
[ExtensionAttribute]
static MvcHtmlString^ SubmitImage(
HtmlHelper^ helper,
String^ name,
String^ imageSrc,
IDictionary<String^, Object^>^ htmlAttributes
)
static member SubmitImage :
helper:HtmlHelper *
name:string *
imageSrc:string *
htmlAttributes:IDictionary<string, Object> -> MvcHtmlString
<ExtensionAttribute>
Public Shared Function SubmitImage (
helper As HtmlHelper,
name As String,
imageSrc 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.
imageSrc
Type: System.StringThe URL for the image.
htmlAttributes
Type: System.Collections.Generic.IDictionary<String, Object>Dictionary of HTML settings.
Return Value
Type: System.Web.Mvc.MvcHtmlString
A submit button for your form using an image.
Return to top
ButtonsAndLinkExtensions.SubmitImage Method (HtmlHelper, String, String, Object)
Creates a submit button for your form using an image.
Syntax
public static MvcHtmlString SubmitImage(
this HtmlHelper helper,
string name,
string imageSrc,
object htmlAttributes
)
public:
[ExtensionAttribute]
static MvcHtmlString^ SubmitImage(
HtmlHelper^ helper,
String^ name,
String^ imageSrc,
Object^ htmlAttributes
)
static member SubmitImage :
helper:HtmlHelper *
name:string *
imageSrc:string *
htmlAttributes:Object -> MvcHtmlString
<ExtensionAttribute>
Public Shared Function SubmitImage (
helper As HtmlHelper,
name As String,
imageSrc 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.
imageSrc
Type: System.StringThe URL for the image.
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 submit button for your form using an image.
Return to top