Click here to Skip to main content
15,924,452 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to create a website based on MVC architecture in Visual Studio 2010
Posted

Before starting you should have knowledge about Models[^], Views[^] and Controllers[^].
Overview:

  • A Model , which represents the underlying, logical structure of data in a software application and the high-level class associated with it. This object model does not contain any information about the user interface.
  • A View , which is a collection of classes representing the elements in the user interface (all of the things the user can see and respond to on the screen, such as buttons, display boxes, and so forth)
  • A Controller , which represents the classes connecting the model and the view, and is used to communicate between classes in the model and view.

For starters adding MVC to a webforms project is pretty simple. Second you can create a controllers folder and views folder in your current web forms project. You can also create a simple controller with an index action. Then setup/configure the routes in the global.ascx file.

You should start from the basics.
http://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller[^]
http://msdn.microsoft.com/en-us/library/ff649643.aspx[^]

To create the websites refer the links below:
Intro to ASP.NET MVC[^]
Design and Develop a website using ASP.NET MVC 4, EF, Knockoutjs and Bootstrap : Part - 1[^]


--Amit
 
Share this answer
 
Comments
Karthik Harve 13-Jun-13 6:25am    
My +5!!! AMit
_Amy 13-Jun-13 6:25am    
Thank you. :)
This is perhaps the best tutorial on MVC on the internet:

http://mvcmusicstore.codeplex.com/downloads/get/228002[^]

Read this and implement this. You will get to learn a lot by following this tutorial.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900