ASP.NET MVC 2.0 Go previous page submit button. Possible solutions. Opinions -
I have a wizard application and I need a back button so that users are back to the last time after clicking this button If they want to change something in the previous steps.
1) I can use JavaSript onClick = "history.go (-1).
2) I can submit it to the previous button to redirect Use the button:
2.1) I may have a hidden field on the page that is calling the current page (current step) and according to this value I can redirect to the previous action.
2.2) I can use values from ViewContext.RouteData.Values ["action"], to decide which form The last action was taken and it was redirected.
Is there any opinion on this? What is more efficient in doing this in MVC 2.0. Is there anything related to MVCC contracts?
Comments
Post a Comment