摘要: routes.MapRoute( name: "blog", //包含参数的url url: "{year}-{month}-{day}", defaults: new... 阅读全文
posted @ 2015-07-02 22:21 nbu_djw 阅读(178) 评论(0) 推荐(0) 编辑
摘要: mvc可以直接配置路由,虽然aspx已经是过去式,但是学习一下也是有必要的。1、直接在global.ashax中Application_BeginRequest方法中讲url重写 protected void Application_BeginRequest(object sender, ... 阅读全文
posted @ 2015-07-02 14:35 nbu_djw 阅读(438) 评论(0) 推荐(0) 编辑