07-10
29
asp获取当前页面路径
作者:Java伴侣 日期:2007-10-29
<%
dim str,host,url,keyword,full
str="http://"
host = Request.ServerVariables("HTTP_HOST")
url = Request.ServerVariables("PATH_INFO") '或url
keyword = Request.ServerVariables("QUERY_STRING")
if keyword <> "" then
full = str&host&url&"?"&keyword
else
full = str&host&url
end if
session("url")=full
%>
dim str,host,url,keyword,full
str="http://"
host = Request.ServerVariables("HTTP_HOST")
url = Request.ServerVariables("PATH_INFO") '或url
keyword = Request.ServerVariables("QUERY_STRING")
if keyword <> "" then
full = str&host&url&"?"&keyword
else
full = str&host&url
end if
session("url")=full
%>
评论: 1 | 引用: 0 | 查看次数: 1323
回复star[2007-10-29 06:10 PM | ]
让人一看就能知道你是计算机专业的,呵呵
发表评论