string currentFilePath = HttpContext.Current.Request.FilePath; string CurrentPageName = currentFilePath.Substring(currentFilePath.LastIndexOf("/") + 1);