Thursday, March 29, 2012

How to Get Parent Url in .Net...


   System.Uri url = Context.Request.UrlReferrer;
   string referringURL = url.AbsoluteUri.ToString();
   lbltest.Text = referringURL;



How to get Browser Page Url if Pages have used with url rewriting....

string s= Request.Url.GetLeftPart(UriPartial.Authority)+Request.RawUrl;

0 comments:

Post a Comment