MVC – 9.mvc整体请求流程

1.请求管道

2~5微软自己的验证,我们一般不用。

在全局配置文件中-已经配置一个路由过滤器-为第7个事件注册了路由方法

image

请求管道

 

1.在application_start中向静态路由表注册了路由数据,在管道第7个事件方法中使用了该路由表数据

1.1.确保网站第一次调用了Global.asax文件里的Application_Start

routes.MapRoute(
                name: "Default",
                url: "{controller}/{action}/{id}",
                defaults: new { controller = "Students", action = "Index", id = UrlParameter.Optional }
            );
posted @ 2014-07-08 21:55  【唐】三三  阅读(347)  评论(0编辑  收藏  举报