Advertise with us

How to get previous page url.

Posted by  Vikas Giri
 2737  View(s)
Ratings:
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.

  1. Re: How to get previous page url.

    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());

Answer