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.


Attachments

  • Sample MVC Application (21959-2220-MVC.zip)
  • Comments

    Author: Sharad Sharma08 Apr 2010 Member Level: Gold   Points : 1

    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.

    Author: Venkatesan Prabu .J08 Apr 2010 Member Level: Gold   Points : 1

    Nice article.

    It would be good, If we get the procedure to use the attached sample. I have downloaded it. But, I didn't find any solutions file or project file to load the app. Instead, a set of cs files were available.

    Cheers,
    Venkatesan Prabu .J
    http://venkattechnicalblog.blogspot.com/

    Author: Yasmin Mansoor24 Apr 2010 Member Level: Silver   Points : 1

    Detailed tutorials on ASP.NET MVC can be found on Microsoft's official website.

    Here's the url:

    http://www.asp.net/mvc/



  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:
    Email: