Join Dotnetcodes is online Discussion Forum for Software professionals . It lets you find friends around the world and Create professional network that share similar interests as you. Get help on ur projects by industry specialists. Also get answers to all ur technical/placement related querries.Get an edge over others.
Already MemberClick here to login MVC Interview Questions Answers Interview Questions
Serial Number in SSRS Articles
Get Started Developing for Android Apps with Eclipse Articles
How to Print a Crystal Report direct to printer Articles
Razor View Engine Interview Questions Answers Interview Questions
.Net framework 4.0 Interview Questions Answers Interview Questions
SQL server reporting services Interview Questions (SSRS) part 1 Articles
Whats New in ASP.NET 4.0 Part 2 Articles
Difference between Encapsulation and Abstraction Interview Questions
Explaining SDLC -System Development Life Cycle Articles
SPIRE PDF Library Articles
Infosys Interview Questions Interview Questions
Html5 interview questions and answers Interview Questions
Dynamic Menu using HTML List Tag and CSS in ASP.Net Articles
SharePoint 2010 interview Questions Answers Interview Questions
Submit Articles | More Articles..

What is MVC?

Posted By: On:7/26/2010 5:02:22 AM in:Articles Category:ASP.NET Hits:1772

Model-View-Controller (MVC) :

MVC is an architectural design principle that separates the components of a Web application. This separation gives us more control over the individual parts of the application. MVC is a part of .net Web Application Framework. However, it is straightforward to map these concepts into the domain of multi-tier enterprise applications. By using MVC a software developer can create a web application as a composition of three roles:

1.      Model: The model contains the core information for an application. This includes the data and validation rules as well as data access and aggregation logic. The model represents enterprise data and the business rules that govern access to and updates of this data. Often the model serves as a software approximation to a real-world process, so simple real-world modeling techniques apply when defining the model. A model represents the state of a particular aspect of the application. Frequently, a model maps to a database table with the entries in the table representing the state of the application.

2.      View: The view encapsulates the presentation of the application, and in ASP.NET this is typically the HTML markup. It is the view's responsibility to maintain consistency in its presentation when the model changes. This can be achieved by using a push model, where the view registers itself with the model for change notifications, or a pull model, where the view is responsible for calling the model when it needs to retrieve the most current data.

3.      Controller: The controller translates interactions with the view into actions to be performed by the model. The controller contains the control-flow logic. It interacts with the Model and Views to control the flow of information and execution of the application.

This separation of entity allows us to have agility and flexibility in building and maintaining our application. ASP.NET MVC brings the power of this development pattern to ASP.NET development, allowing us to use our .NET development skills to build MVC applications.

comments powered by Disqus
User Profile
Piyush Kumar
.Net Programmer
New Delhi , India
Email :You must Log In to access the contact details.
Latest Post from
View: 1749 | Submitted on: 7/28/2010 11:37:14 PM
What is MVC?
View: 1772 | Submitted on: 7/26/2010 5:02:22 AM
Deleting Duplicate rows from a table
View: 2249 | Submitted on: 7/14/2010 1:50:14 AM
How To convert a Number into Word
View: 4279 | Submitted on: 7/14/2010 12:50:25 AM
Serial Number in SSRS
View: 18093 | Submitted on: 7/12/2010 6:25:55 AM
Submit Articles | All Post of This User..

All rights reserved to dotnetcodes. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks.
Best viewed at 1024 x 768 resolution with Internet Explorer 5.0 or Mozila Firefox 3.5 or Google Crome and higher