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
Post a Comment