What is MVC Pattern?

 Posted by Ddd on 2/12/2011 | Category: Design Pattern & Practices Interview questions | Views: 6636 | Points: 40


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)

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response