摘要: 在global文件的添加如下代码:实现 xxx.html----->>xxx.aspxvoid Application_BeginRequest(object sender, EventArgs e) { if (Regex.IsMatch(Request.RawUrl.ToLower(), @".html") == true ) { Context.RewritePath(Request.RawUrl.Replace(".html",".aspx")); } } 阅读全文
posted @ 2012-03-28 19:54 你妹的sb 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 运行环境 : Windows Server 2003 + IIS 6.0步骤:1. 安装 Microsoft .net FrameWork 3.5 SP12. 安装 MVC 2.0 RC3. 右击站点 >> 属性 >> 主目录 >> 配置 >> 映射 a) 点击 “添加”,弹出“添加/编辑应用程序扩展名映射”窗口,如下设置: 可执行文件 :C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll 扩展名 :.mvc 动作 限制为 :GET,HEAD,POST,DEBUG 脚本引擎 阅读全文
posted @ 2012-03-28 19:53 你妹的sb 阅读(193) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2012-03-28 17:11 你妹的sb 阅读(1) 评论(0) 推荐(0) 编辑
百度一下