摘要: MVC在底层和传统的asp.net是一致的,在底层之上,相关流程如下:1)Global.asax里,MvcApplication对象的Application_Start()事件中,调用 RouteConfig.RegisterRoutes(RouteTable.Routes); 来注册路由规则。2)RouteConfig.RegisterRoutes()方法里,给出的默认规则为 {controller}/{action}/{id} . a. 在有特别需要的时候,到这里来修改规则。 b. 未指明Controller默认为HomeContoller,未指定Action默认为Index, 也就是说, 阅读全文
posted @ 2012-11-02 09:46 杨mon 阅读(2608) 评论(0) 推荐(0)