Mvc pattern, DOT NET Programming

What is MVC pattern?

The main purpose  of using  the MVC pattern is to decouple the GUI from the Data. It also gives the ability to provide multiple views for the same Data. The  MVC pattern separates objects into 3 important parts:-

Model: - This part  is specially for maintaining the data. It is actually where your database connection, business logic, querying database etc. is actually implemented.

Views: - Displaying all or some parts  of the data, or probably different view of the data. The View is responsible for look and feel, formatting, Sorting etc.

Controller: - They are the event handling part which affects either the model or the view. The Controller responds to the mouse or keyboard i/p to command model and view to change. The Controllers are associated with the views. The User interaction triggers the events to change the model, which in turn calls few  methods of model to update its state to notify other registered views to refresh their display.

The various sections of ASP.NET are shown below  which maps to MVC sections:-

Model: - This part  is represented by business entity models,Typed Dataset,Data view,Business components ,Dataset etc. Then this part can then be tied up to either windows application or web UI.

View: - The ASCX,  ASPX, or windows application UI such as  data grid and so on , form the view part of it.

Controller: - In the ASP.NET the behind code is the controller as the events are handled by that area  . The Controller communicates both with Model as well as the view.

882_MVC pattern.png

Figure: - Data flow between MVC architectures.

Posted Date: 9/22/2012 6:13:35 AM | Location : United States







Related Discussions:- Mvc pattern, Assignment Help, Ask Question on Mvc pattern, Get Answer, Expert's Help, Mvc pattern Discussions

Write discussion on Mvc pattern
Your posts are moderated
Related Questions
Full time contractual programming position (mostly scraping, databasing) Project Description: This is a full time contractual role needed for a sports advisory service. We ar

How to clear a datagrid on a button click? You require to Clear the DataSource of the dadaGrid. So try this: dataSet1.Clear(); dataGrid1.DataSource = dataSet1.TableNam

What is a host process? A host process is an implementable program that hosts a workflow. It might be a Windows Forms application, a Web application, or a Web service applicati

Converting Rs. to Paisa - C# Program Need the code of C# Program for Converting Rs. to Paisa.

Explain the fundamental of connection pooling. Whenever a connection is opened first time a connection pool is created and is based on the exact match of the connection string

What is AppSetting Section in "Web.Config" file? Web.config file describe the configuration for a webproject. By Using "AppSetting" section we can define user defined values. T

Question: (a) List three advantages of binding data to controls. (b) The Repeater control uses templates to control formatting. Define the five types of templates supporte

What is the sequence of UML diagrams in project? At First let me say some fact about this question, you cannot implement all the nine diagrams given by the UML in one project;

What are runtime services? Runtime services having of predefined and user-defined classes that are available to the workflow runtime engine during implementation to customize t