Code
string currentFilePath = HttpContext.Current.Request.FilePath;
string CurrentPageName = currentFilePath.Substring(currentFilePath.LastIndexOf("/") + 1);
string currentFilePath = HttpContext.Current.Request.FilePath;
string CurrentPageName = currentFilePath.Substring(currentFilePath.LastIndexOf("/") + 1);
转载于:https://www.cnblogs.com/Chendaqian/p/3330605.html