.NET---获取当前页面名

来源:互联网 发布:win7rar解压软件 编辑:程序博客网 时间:2024/06/05 21:12

 

string strPath = this.Page.Request.ServerVariables["PATH_INFO"];
string strPageName = strPath.Substring(strPath.LastIndexOf("/") + 1);//引用此控件的页面名
原创粉丝点击