信息系统项目管理师_2024年软考学习应考交流_信息系统项目管理师考试
标题:
ASP.NET取得当前页面的完整URL
[打印本页]
作者:
退隐网络
时间:
2008-10-30 08:16
标题:
ASP.NET取得当前页面的完整URL
介绍一下ASP.NET取得当前页面的完整URL 的方放,icech做成了函数,直接用吧!
private string GetPath()
{
string strPath = "http://" + Request.ServerVariables["HTTP_HOST"] + Request.ServerVariables["PATH_INFO"] + "?" + Request.ServerVariables["QUERY_STRING"];
if(strPath.EndsWith("?"))
{
strPath = strPath.Substring(0, strPath.Length - 1);
}
return strPath;
}
作者:
海边疯
时间:
2012-2-26 14:42
我喜欢,请大家鼓掌支持,谢谢
欢迎光临 信息系统项目管理师_2024年软考学习应考交流_信息系统项目管理师考试 (http://bbs.tuandui.org.cn/)
Powered by Discuz! X3.2