I'm writing an app with ASP.NET MVC where, for various reasons, the navigation is handled through HTML input buttons. What are the Best practices on how to handle this situation?
Set up a Form on the buttons where information needs to be POSTed and just use JavaScript to redirect on the buttons where information doesn't need to be retained
Have all buttons handled through forms, to the point where a mini-form handles navigation on the buttons where the information doesn't need to be retained
<% using (Html.BeginForm()) { %> <input type="hidden" name="controller" value="1" /> <input type="hidden" name="action" value="Location" /> <input id="BackButton" type="submit" value="Go Back" /> <% } %>
Something I haven't thought of here