blu
blu

Reputation: 13175

ASP.NET MVC Html.SubmitImage

I am looking for Html.SubmitImage in RC1 and don't see it anywhere when reflecting through the MVC assemblies.

Has it been moved / removed?

Upvotes: 0

Views: 1195

Answers (2)

Dan Atkinson
Dan Atkinson

Reputation: 11699

For others, this is a quick mockup of a SubmitButton extension for the HtmlHelper.

public static class HtmlLinkExtensions
{
    public static string SubmitButton(this HtmlHelper htmlHelper, string imageLink, string value, string altText)
    {
        return string.Format("<input type='image' src='{0}' value='{1}' alt='{2}' />", imageLink, value, altText);
    }
}

Upvotes: 1

tvanfosson
tvanfosson

Reputation: 532465

SubmitImage has moved to MvcFutures in RC1. You can find the actual source at http://www.codeplex.com/aspnet. The RC1 changeset is at http://aspnet.codeplex.com/SourceControl/changeset/view/21528

Upvotes: 1

Related Questions