2009年4月20日
摘要: ASP.NET级别的URL Rewrite组件的原理很简单,其实只是监听BeginRequest事件,并且根据配置来决定目标URL。在我之前接触过的项目中,发现使用URLRewriter作为URL Rewrite组件的频率非常高,我想可能是因为那是微软提供的东西吧。  如果要使用URLRewriter,首先自然就是在web.config中配置一个HttpModule:<httpModules... 阅读全文
posted @ 2009-04-20 19:10 collinye 阅读(425) 评论(0) 推荐(0) 编辑
摘要: //url转链接 //2008-7-7Regex UrlRegex = new Regex(@"((http|ftp|https):\/\/(([\w.]+\/?)[\S]*))|((www.)([\w.]+\/?)\S*)");Text =UrlRegex.Replace(Text, "<a href=\"http://$3$5\"target=\"_blank\" style=... 阅读全文
posted @ 2009-04-20 18:35 collinye 阅读(301) 评论(0) 推荐(0) 编辑
摘要: 1. 起因:由于IIS站点设置了域名主机头,且装了.net framework3.5 sp1。2.现象:出现的错误"unable to start debugging on the webserver. An authentication erroroccurred while communicating with the web server.3.解决方案:已找到解决方法,方法1修改以... 阅读全文
posted @ 2009-04-20 18:30 collinye 阅读(647) 评论(0) 推荐(1) 编辑