Wednesday, May 13, 2009

Get the name of previous page in ASP.Net

public static string mGetPreviousPage()
{
if (Request.UrlReferrer != null)
{
string strPage = Request.UrlReferrer.Segments[Request.UrlReferrer.Segments.Length - 1];
return strPage;
}
return null; // No Previous page found
}

1 comment:

 
Locations of visitors to this page