How to get previous page url.

Total Post:13

Points:91
 2465  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. Post:103

    Points:721
    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