This function can be used to retrieve the current page name.
public string GetCurrentPageName()
{
string Path = System.Web.HttpContext.Current.Request.Url.AbsolutePath;
System.IO.FileInfo Info = new System.IO.FileInfo(Path);
string pageName = Info.Name;
return pageName;
}
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment
It is the same account you read, post and publish with — and you will come straight back to this page.

Zeeshan AzimPosted Feb 16, 2016, 3:11 AM
Thanks