Wednesday, 2 May 2012

Get Page Name in asp.net


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

No comments:

Post a Comment