i’m creating a form on asp.net mvc 2 and i need to submit my form data. Is there a simple way to submit a form with a input[type=”image”] (like asp:imagebuttom) but without use javascript to call the form submit event?
thanks in advance for some help!
There’s no particular magic for submit buttons in MVC. Just create a standard image input inside the form.
Image inputs are submit buttons in HTML, so you don’t need to add any javascript.