专注于互联网--专注于架构

最新标签
网站地图
文章索引
Rss订阅

首页 »Asp教程 » asp.net获取路径:在asp中获取当前页面路径 »正文

asp.net获取路径:在asp中获取当前页面路径

来源: 发布时间:星期四, 2008年9月25日 浏览:163次 评论:0

由于工作中要用到,所以些了这段代码。

<!--获取当前页面路径-->
〈%
dimstr,host,url,keyword,full
str=\"http://\";
host=Request.ServerVariables(\"HTTP_HOST\")
url=Request.ServerVariables(\"PATH_INFO\")’或url
keyword=Request.ServerVariables(\"QUERY_STRING\")
ifkeyword<>\"\"then
full=str&host&url&\"?\"&keyword
else
full=str&host&url
endif
session(\"url\")=full
%>

0

相关文章

读者评论

发表评论

  • 昵称:
  • 内容: