摘要: Request Validation - Preventing Script AttacksThis paper describes the request validation feature of ASP.NET where, by default, the application is prevented from processing unencoded HTML content subm... 阅读全文
posted @ 2009-09-10 16:25 坐看风起 阅读(382) 评论(1) 推荐(0) 编辑
摘要: 把URL说成是网址其实是很不严谨的说法,因为URL有很严格的结构,表示也很灵活、有弹性。在RFC 3986: Uniform Resource Identifier (URI): Generic Syntax 的 Syntax Components把URL描述为如下图:如图所示,把URL分成几个部分,这样便可以了解URL的构成。在URI scheme - Wikipedia页面中对URL的描述更为... 阅读全文
posted @ 2009-09-10 15:02 坐看风起 阅读(4664) 评论(1) 推荐(0) 编辑
摘要: 注:本篇文章来源于http://blog.miniasp.com/post/2008/02/How-Do-I-Get-Paths-and-URL-fragments-from-the-HttpRequest-object.aspx我們在開發網頁應用程式,時常需要去解析網址(Request.Url)的每個片段,進行一些判斷。例如說"http://localhost:1897/News/Press/C... 阅读全文
posted @ 2009-09-10 11:55 坐看风起 阅读(11421) 评论(1) 推荐(3) 编辑