/ , , / Controllers and Routing In asp.net Mvc

Controllers and Routing In asp.net Mvc

Controllers:-
It contains logic what we want to perform. It contains methods  , logics.
Urls are always mapped to controllers.
Basic Pic is given below for your understanding.
Routing:-
Routing tells the application which controller and which method should be called first.
When an asp.net mvc application fired up, firstly its goes to “Global.asax” file  and with in that in Application_Start method, routing is registered.
RouteConfig.RegisterRoutes(RouteTable.Routes) is use to register it, if we go to its definition we will find internal structure of it.
In this we register which method, which controller should be called first.

You can also check my video at this topic for detail study.  

about author

Blogger Sens it website about blogger templates and blogger widgets you can find us on social media
Previous Post :Go to tne previous Post
Next Post:Go to tne Next Post

No comments:

Post a Comment