ASP如何获取地址栏的URL地址 急!

zzs_2013 2004-11-25 10:30:51
ASP如何获取地址栏的URL地址.
...全文
241 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
cheng17 2004-11-26
  • 打赏
  • 举报
回复
response.Write request.ServerVariables("HTTP_REFERER") ,记录上一页来源
samyan 2004-11-26
  • 打赏
  • 举报
回复
Request.ServerVariables("URL")&"?"request.querystring

request.ServerVariables("HTTP_REFERER")
cmslovehxh 2004-11-26
  • 打赏
  • 举报
回复
request.ServerVariables("HTTP_REFERER")
dachangtui 2004-11-25
  • 打赏
  • 举报
回复
用 Jaron(good,better,best) 的没错
hflsj 2004-11-25
  • 打赏
  • 举报
回复
顶一下,支持
zzs_2013 2004-11-25
  • 打赏
  • 举报
回复
我需要把http://www.sinue.com/article/article.asp?article_id=195
一起记录下来
用Request.ServerVariables("URL") 只能记录article/article.asp
sdts 2004-11-25
  • 打赏
  • 举报
回复
支持楼上
  • 打赏
  • 举报
回复
楼上你写这么麻烦是为什么??直接跟他说用Request.ServerVariables("URL") 好了*^_^*
Jaron 2004-11-25
  • 打赏
  • 举报
回复
response.write geturl()

Function GetUrl()
On Error Resume Next
Dim strTemp
If LCase(Request.ServerVariables("HTTPS")) = "off" Then
strTemp = "http://"
Else
strTemp = "https://"
End If
strTemp = strTemp & Request.ServerVariables("SERVER_NAME")
If Request.ServerVariables("SERVER_PORT") <> 80 Then strTemp = strTemp & ":" & Request.ServerVariables("SERVER_PORT")
strTemp = strTemp & Request.ServerVariables("URL") & "?product=CMS&"
If Trim(Request.QueryString) <> "" Then strTemp = strTemp & Trim(Request.QueryString) & "&"
GetUrl = strTemp
End Function

28,390

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧