Resources » Code Snippets » Design Patterns

Sample MVC ASP.NET Application


Posted Date: 22-Oct-2008  Last Updated:   Category: Design Patterns    
Author: Member Level: Gold    Points: 10



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.


Did you like this resource? Share it with your friends and show your love!

Responses to "Sample MVC ASP.NET Application"
Author: S. Sharma    08 Apr 2010Member 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 .J    08 Apr 2010Member 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 Mansoor    24 Apr 2010Member 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/



Feedbacks      

Post Comment:




  • 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:   Sign In to fill automatically.
    Email: (Will not be published, but required to validate comment)



    Type the numbers and letters shown on the left.


    Submit Article     Return to Article Index

    Subscribe to Subscribers
    Active Members
    TodayLast 7 Daysmore...

    Awards & Gifts
    Talk to Webmaster Tony John

    Online Members

    Hammad salik
    More...
    Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India