I have kind of wizard application and i need to have back button to allow users after clicking on this button to go back to previous step if they would like to change something in previous steps.
1) I may do this using JavaSript onClick=“history.go(-1).
2) I may do this using submit button to redirect to previous action:
2.1) i may have hidden field on page which saying the current page(current step) and according with this value i may redirect to previous action.
2.2) I may use values from ViewContext.RouteData.Values["action"] to decide which previous action was and redirect to this one.
Is there any opinions on that? What is the more efficient of doing this in MVC 2.0 Is there something regarding to that in MVCContrib?