一聚教程网:一个值得你收藏的教程网站

热门教程

获取url包括参数

时间:2022-07-02 22:32:59 编辑:袖梨 来源:一聚教程网

获取url包括参数
  '函数名:GetUrl
  '作  用:获取url包括参数
  '返回值:获取url包括参数
  '****************************************************
  Public Function GetUrl()  
   Dim strTemp    
   strTemp=Request.ServerVariables("Script_Name")     
   If  Trim(Request.QueryString)<> "" Then
    strTemp=strTemp&"?"
    For Each M_item In Request.QueryString
  strTemp=strTemp&M_item&"="&Server.UrlEncode(Trim(Request.QueryString(""&M_item&"")))
    next
   end if
   GetUrl=strTemp  
  End Function
 

 
 '使用方法
 call GetUrl()

热门栏目