ASP.NET MVC - What is UrlRoutingModule? -


i reading request life cycle in mvc. got stuck in understanding below line.

the urlroutingmodule intercepts request

query - urlroutingmodule?

i searched lot on google not found useful

requests asp.net mvc-based web application first pass through urlroutingmodule object, http module. module parses request , performs route selection. urlroutingmodule object selects first route object matches current request. (a route object class implements routebase, , typically instance of route class.) if no routes match, urlroutingmodule object nothing , lets request fall regular asp.net or iis request processing.

from selected route object, urlroutingmodule object obtains object implements iroutehandler interface , associated route object. typically, in mvc application, instance of mvcroutehandler class. mvcroutehandler instance creates mvchandler object implements ihttphandler interface. mvchandler object selects controller handle request. more information, see asp.net routing.

the urlroutingmodule , mvcroutehandler classes entry points asp.net mvc framework. perform following actions:

  • select appropriate controller in mvc web application.

  • obtain specific controller instance.

  • call controller's execute method.

reference


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -