Share via


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
System_CAPS_pubmethodSystem_CAPS_static SubmitImage(HtmlHelper, String, String)

Creates a submit button for your form using an image.

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

Creates a submit button for your form using an image.

System_CAPS_pubmethodSystem_CAPS_static 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

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

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

  • 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 submit button for your form using an image.

Return to top