Sample MVC ASP.NET Application
ASP.NET MVC is a framework that allows developers to apply the MVC pattern in the development of an ASP.NET application, thus allowing a better separation of concerns, which results in better reusability and easier testing.
MVC consists of three kinds of objects
The Model is an application object.
The View is the screen presentation.
The controller defines the way the user interface reacts to user inputs
The Basic Flow of MVC Application is
• The request comes from the client and hits the Controller.
• The Controller calls the Model in order to perform some "business" operations.
• The Model returns the results of the operations back to the Controller.
• The Controller decides which View needs to be rendered and sends it the data that must be rendered.
• Finally the View renders the output and sends the response back to the client.
Finally i attached a code, which you can download.
Enjoy it.
Thanks dude!
Nice article.
I was looking for a good article that can provide fundamentals of Model View Controller architecture along with a sample application.
I have just downloaded and will play around it today.
Cheers.