Saturday 21 April 2012

What is MVC Pattern?


What is MVC Pattern?



MVC:

Model View Controller. MVC pattern seperates the GUI from the Data.
It is commonly used in ADO.NET programming in ASP.NET(example)

MVC in context with ADO.NET/ASP.NET

MVC pattern separates objects in to three important sections:-

Model: - This section is specially for maintaining data. It is actually where we write
code for database connectivity, methods of DataReader, DataAdapter, properties
for passing data and writing validations
eg: Business Access Layer class, Data Access Layer class.

View: - Design of the .aspx page (The markup or the presentation layer)

Controller: - They are event handling section which affects either the model or the view. (eg: .aspx.cs)

No comments:

Post a Comment