string sPagePath = System.Web.HttpContext.Current.Request.Url.AbsolutePath; System.IO.FileInfo oFileInfo = new System.IO.FileInfo(sPagePath); string sPageName = oFileInfo.Name;