I am developing a MVC application.
In Edit View, I want to have save/submit button and cancel button.
By default MVC given 'back to list' link.this link calls index() method.
Now, I want to call this index() method on Cancel button's Onclick event , how to do this ?
<input type="submit" value="Save" onclick="return validate();" id="btnSubmit" />
<input type="Button" value ="Cancel" onclick="Index()"style=" font-size:"1.2em"/>
What changes I have to make in above code?