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
What is Extensible Markup Language (XML). XML is an easy and flexible mark-up language in the text format. Nowadays, it is widely used to exchange a large variety of data over

What is the use of the Connection object? The Connection object is used to connect your application to a specific data source by giving the needed authentication information in

Explain Windows authentication Schemes There are four parts of windows authentication I. Integrated Windows authentication II. Basic and basic with SSL authentication

Our company is seeking a talented PHP Developer to join our young and dynamic online media agency. Must have: - Knowledge in SQL and Databases, proven indexing and coding exp

What is Common Type System (CTS)? CTS is the component of CLR by which .NET Framework provides support for multiple languages because it have a type system that is common acros

What are the metrics followed in project management? The most metric sets deal with a variation of these attributes and are chosen to help the project managers gain insight int

What's the difference b/w Unit testing, Assembly testing and Regression testing? The Unit testing is also known as the Component testing. The Unit testing ensures that the reli

How to Creating a Key Pair ? You can create a key pair using the Strong Name tool (Sn.exe). Key pair files usually have an .snk extension. To create a key pair At the comman

Project Description: We are seeking experienced .NET developers (possibly certified) to work with us on several future projects. You will have to pass a simple test to be consid

Explain memory-mapped files. Memory-mapped files (MMFs) permit you map the content of a file to the logical address of an application. These files enable the multiple processes