Get current page name in ASP.NET
string sPath = System.Web.HttpContext.Current.Request.Url.AbsolutePath;
System.IO.FileInfo oInfo = new System.IO.FileInfo(sPath);
string sRet = oInfo.Name;
Response.Write(sRet);
Demo Get current page name

Tags: asp net get page name, asp net get current page name, how to get current Page name in asp net, get page name in asp net, asp net get current page, get current page name in asp net, get page name asp net, how to get page name in asp net, asp net current page, Get current page name asp net
Related posts:
- Get current URL in ASP.NET
- Export GridView to Excel in ASP.NET
- Export DataTable to CSV/Excel
- Clear TextBox on Focus in ASP.NET
- Export GridView to CSV
Nice piece of code, really helpful – thank you.
This is very good thank you
Thanks!!