The ASP. NET MVC is a Web development framework on the Microsoft. NET platform that provides developers with a way to build a good web application. Since the preview was first released in 2007, the popularity of ASP. NET MVC has improved significantly as a substitute for Web form, and many large Web applications are now built using this technology. It features neat code, separation of concerns, and testability.
MVC represents the Model-view-Controller (Model-view-controller), which is a very popular design pattern in web development. You can mix MVC and Web Form pages in the same application, both based on the ASP.
1.MVC mode
Model: Build the domain around which the software is built, and build a domain model. For example, blogs, models may be posts and comments.
View: A visual representation of a model. For example, HTML that shows a blog post.
Controller: Provides a coordinator for the association between the view and the model. The controller is responsible for processing input, manipulating the model, and deciding which action to perform, such as rendering a view or redirecting to another page. For example, the controller might want to find the latest comments (models) for a post and pass them to the view for rendering.
The controller accepts user input, constructs the appropriate model, and then passes it to the view. Both the controller and the view have dependencies on the model, but the model itself is ignorant of the controller and view. As shown in 1.3.
Knowledge Point 1-2: What is ASP. NET MVC