Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Back button functionality using ASP.net MVC

Tags:

I have a requirement which needs me to redirect an user to previous page on his browsing history. I am using ASP.net MVC 1.0. I do NOT want to use javascript to achieve this. Any pointers?

like image 832
Ujwala Khaire Avatar asked Aug 24 '09 22:08

Ujwala Khaire


1 Answers

You can use the Request.UrlReferrer property to render out a link. Maybe like this:

<a href="<%= Request.UrlReferrer %>">Back</a>
like image 175
Darko Z Avatar answered Oct 02 '22 11:10

Darko Z