All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
PHP-Nuke存在远程SQL注入漏洞,后台数据库堪忧_php资料_编程技术
PHP连接远程MYSQL和MYSQL5.1中文乱码处理方法_[PHP教程]
XML 问题- 超越DOM(轻松使用 DOM 的技巧和诀窍)_[XML教程]
ASPX页面出现乱码的解决办法_[Asp.Net教程]
asp.net初学者:petshop4.0设计说明_.net资料_编程技术
PHP实例:email address 生成图片程序_[PHP教程]
php用流方式制作缩略图_[PHP教程]
关于PHP动态网页session问题的解决方案_[PHP教程]
使用javascript脚本控制网页Table的显示隐藏_JavaScript技术_编程技术
Silverlight,2(beta1)数据操作(3)—使用ADO.NET,Data,Service_[Asp.Net教程]
Reading number is top 10 pictures
More attractive than sora aoi2
In the world the most mysterious 21 place landscape2
A resort photographed beautiful young woman change clothes process vomiting blood1
From China fortress sora aoi3
[猫扑大杂烩]华东师范墙上看到的捐精告示 15毫升3600元
人美胸美腿更美4
恶搞漫画2
The money of more than 100 countries and regions10
再发两张抽象画
Sora aoi mirror memorial classics3
Download software ranking
Love the forty days
linux安装大全
Sora aoi‘s film--Lust fan wall
Ashlynn Video2
JSP+Ajax Web development typical examples
Boxer vs Yellow3
Boxer's Top ten classic battle9
Tram sex maniac 2 (H) rar bag12
Sora aoi 120 minutes
Adobe Flash Player(IE) 10.0.32.18 浏览器专用的FLASH插件
delv published in(发表于) 2014/1/24 9:07:33 Edit(编辑)
ASP.NET中获取URL的方法_[Asp.Net教程]

ASP.NET中获取URL的方法_[Asp.Net教程]

ASP.NET中获取URL的方法_[Asp.Net教程]

HttpContext.Current.Request.Url.ToString() 并不可靠。
如果当前URL为
http://localhost/search.aspx?user=http://csharp.xdowns.com&tag=%BC%BC%CA%F5
通过HttpContext.Current.Request.Url.ToString()获取到的却是
http://localhost/search.aspxuser=http://csharp.xdowns.com&tag=¼¼Êõ
正确的方法是:HttpContext.Current.Request.Url.PathAndQuery


通过ASP.NET获取URL地址方法
如果测试的url地址是http://www.test.com/testweb/default.aspx, 结果如下:
Request.ApplicationPath: /testweb
Request.CurrentExecutionFilePath: /testweb/default.aspx
Request.FilePath: /testweb/default.aspx
Request.Path: /testweb/default.aspx
Request.PhysicalApplicationPath: E:\WWW\testwebRequest.PhysicalPath:
Request.PhysicalPath: E:\WWW\testweb\default.aspx
Request.RawUrl: /testweb/default.aspx
Request.Url.AbsolutePath: /testweb/default.aspx
Request.Url.AbsoluteUrl: http://www.test.com/testweb/default.aspx
Request.Url.Host: www.test.com
Request.Url.LocalPath: /testweb/default.aspx







添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.