Important MVC concepts -1
Today we are going to learn some of the important concepts from Dot Net MVC. 1.What's action in MVC? Each public method of the controller represents actions. 2.What are the 3 main components of MVC pattern? i. Model ii. View iii. Controller 3. What are the disadvantages of ASP.NET Web Forms overcome by MVC? i. Limited control over the generation of HTML ii. Coupling with business code and UI iii. Hard to grasp iv. Complex page life cycle 4. How does bundling beneficial? We bundle our static files into one file because for each static file, browser will make separate request to the server and retrieve. If we have 50 css and js files, then 50 requests will be triggered to server. We can reduce these 50 requests to 1 by bundling. 5. What are the roles of controller? Controllers are responsible for handling requests,communicating with models and generating the views.