MVC Background:
The ASP.NET MVC is a web application framework developed by Microsoft, which implements the model–view–controller (MVC) pattern. It is open-source software, apart from the ASP.NET Web Forms component which is proprietary.MVC Introduction:
- The ASP.NET MVC framework is a lightweight, highly testable presentation framework that (as with Web Forms-based applications) is integrated with existing ASP.NET features, such as master pages and membership-based authentication.
- The Model-View-Controller (MVC) architectural pattern separates an application into three main components: the model, the view, and the controller.
- The ASP.NET MVC framework provides an alternative to the ASP.NET Web Forms pattern for creating Web applications
- The MVC framework is defined in the System.Web.Mvc assembly
MVC Design Pattern:
Models: Model objects are the parts of the application that implement the logic for the application's data domain. Often, model objects retrieve and store model state in a database.
Views: Views are the components that display the application's user interface (UI). Typically, this UI is created from the model data
Controllers: Controllers are the components that handle user interaction, work with the model, and ultimately select a view to render that displays UI. In an MVC application, the view only displays information; the controller handles and responds to user input and interaction.
Reference:
No comments:
Post a Comment