Joseph Michael Pesch
VP Programming

Asp.Net GetCurrentPageName

by 10. November 2010 18:32

static public string GetCurrentPageName()
{
  System.IO.FileInfo fi = 

    new System.IO.FileInfo(HttpContext.Current.Request.Url.AbsolutePath);
  return fi.Name;
}

 

Tags:

[None]

Comments are closed