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?
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?
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
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);
}
}