you can use following function to get current page name in Asp.net
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; } |
Discussion
No comments yet.