Home > DeveloperSection > Forums > How to get previous page url.
Vikas Giri
Vikas Giri

Total Post:13

Points:91
Posted on    October-11-2011 3:01 AM

 ASP.Net ASP.Net 
Ratings:


 1 Reply(s)
 1888  View(s)
Rate this:
Hi all,
I want to redirect on the previous page. so i want to get previous page path give the right solution of its.



Amit Singh

Total Post:103

Points:721
Posted on    October-11-2011 3:30 AM

hi vikas,

we get the previous page path by using this
Request.UrlReferrer

It give the previous page url, if you want to redirect page to the previous page as
 Response.redirect(Request.UrlReferrer.ToString());

Don't want to miss updates? Please click the below button!

Follow MindStick