Asp教程

通过asp实例结合结合ACCESS,MSSQL来更好的深入Asp学习 - 爬坡者

« asp中操作access表[access高级应用]ASP分组统计sql语句 »

ASP分段获取地址栏的URL地址

如果要想获取这样的地址:http://192.168.0.5/super/super_article.asp?id=4

那么我们就只要获取:

     192.168.0.5---><%=Request.ServerVariables("HTTP_HOST")%>
     /super/super_article.asp-----><%=Request.ServerVariables("URL")%>
     id=4----><%=Request.ServerVariables("QUERY_STRING")%>


那么我们把上面的地址合起来就可以完成任务了:

http://192.168.0.5/super/super_article.asp?id=4----->http://<%=Request.ServerVariables("HTTP_HOST")&request.ServerVariables("URL")&"?"&Request.ServerVariables("QUERY_STRING") %>

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

最新评论及回复

最近发表

Powered By Z-Blog 1.8 Spirit Build 80710

Copyright 2007-2008 papozhe.com [asp教程] All Rights Reserved.
浙ICP备07030537号
免责申明:所有文章除特别声明,均来自网上,主要为学习用!内容仅供参考,版权归原作者。如侵犯您利益,请来信告知.
Email:papozhe$Gmail.com QQ:76336503