I have a requirement that requires me to redirect the user to the previous page in the browsing history. I am using ASP.net MVC 1.0. I do NOT want to use javascript for this. Any pointers?
You can use the Request.UrlReferrer property to render the link. Maybe like this:
Request.UrlReferrer
<a href="<%= Request.UrlReferrer %>">Back</a>
In your action, you can take the "returnUrl" parameter and then return RedirectResult. He has to do.
For information, refer to the account controller from the default ASP.NET MVC project on VS2008.
What about:
<a class="ImageBtn" href="previous.html" onClick="history.back();return false;">Go back</a>
In this case, you can assign an image to make it look better.