The ASP.NET MVC Framework is a web application framework which is used to develop web applications in Model-View-Controller design pattern (I will briefly describe about the MVC pattern latter in this post). Actully ASP.NET MVC Framework is a part of the ASP.NET Web application framework which comes under Microsoft .NET framework.
There are exactly two different programming models which can be used to create ASP.NET Web Applications. One is ASP.NET MVC and the other is ASP.NET Web Forms. Since in here we are mainly focusing on ASP.NET MVC, we'll move forward with that.
First of all to get a whole imaginary idea of MVC, take a good look at the following image.
ASP.NET MVC |
- Model Component
- Model represent the data or activity corresponding to the application. Simply means it represents the state of the application. (Ex: DB)
- View Component
- A View is responsible for rendering a user interface to display information which it accepts from Controller Component. (Ex: Web Pages)
- Controller Component
- A controller handles interactions and then updates the model to reflect a change in state of the application, and then passes information to the View. (Ex: Web Services)
When creating ASP.NET MVC Web Applications, the namespace that contains classes and interfaces that supports the ASP.NET MVC is System.Web.Mvc.
Hope you get something out of this post. Appreciate your feedback.
Happy Coding.
Regards,
Jaliya
No comments:
Post a Comment