Wednesday, October 29, 2008

Get the Previous Page Name

Below is the code to get page name from where it has been redirected to the current page.

code in the current page:

if (Request.UrlReferrer != null)
{
string PName = Request.UrlReferrer.Segments[Request.UrlReferrer.Segments.Length - 1];
Response.Write("Redirected from : "+PName);
}


lazer hair removal

No comments: