How to create an Image button in MVC 4

Swifty picture Swifty · Jul 12, 2013 · Viewed 28.6k times · Source

How do you create a plain old image button in MVC 4 (Razor)? I'm looking for something like this enter image description here

Answer

shamcs picture shamcs · Jul 12, 2013

try this

 @using (Html.BeginForm("ActionTaken", "TestController"))   {
      <button name="button" value="ActionOne" class="button" style="width: 200px;">
         <img src=""/></button>
      <button name="button" class="button" style="width: 160px;" value="ActionTwo">
      <img src=""/></button>             }