Tuesday, 14 May 2013

How to get Previous Page URL without using session or Querystring?


How to get Previous Page URL without using session or Querystring?


From Code Behind file write:



Uri MyUrl = Request.UrlReferrer;
            if (MyUrl != null)
                ViewState["ReturnURL"] = Convert.ToString(Request.UrlReferrer.AbsoluteUri);



No comments:

Post a Comment