asp.net mvc - How to get last page visited in a controller -


Is there a way to go or get to the last page? Example If I'm on a list page with a new page that loads the page with the form, if the user cancels, then you go back to the previous page (the list page).

Thanks

OK, in web forms, you will use: Request. UrlReferrer

So I think you can also use it in MVC, accessible through the HttpContext property of RequestContext property acceptable by the controller.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -