开发者

How do ASP.NET routing and IIS handler mappings interact?

I think I understand how ASP.NET routing works, and in general how the IIS handler mappings work, but I do开发者_JAVA技巧n't know how they work together. It says that the HttpHandler is mapped during the MapRequestHandler phase in the application life cycle. And as far as I can tell, the UrlRoutingModule that implements ASP.NET routing runs at about that time as well. Both seem to examine the URL and determine the appropriate IHttpHandler to use for the request.

So which one runs first? How do they communicate to one another? Which one will take precedence is both are trying to map the same URL?

I have a feeling that setting HttpContext.Handler is involved but I don't know how.


A good explnation can be found here. http://learn.iis.net/page.aspx/496/iis-url-rewriting-and-aspnet-routing/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜