Asp 获取当前页面地址

来源:互联网 发布:plc红绿灯梯形图编程 编辑:程序博客网 时间:2024/05/22 20:34

  Session("Redirect_Str")="HTTP://"&Request.ServerVariables("HTTP_HOST")&Request.ServerVariables("SCRIPT_NAME")
   If Len(Request.Servervariables("query_string"))>0 Then
      Session("Redirect_Str")=Session("Redirect_Str")&"?"&Request.Servervariables("query_string")
   End If 

 

其中Session("Redirect_Str")的值就是完毕的页面地址了,包括参数的

原创粉丝点击