Thursday, September 12, 2013

What is ASP.NET MVC?

What is ASP.NET MVC?

                          ASP.NET  MVC is a   NEW Web Development Technology which is part of .NET Framework 3.0 or later.

   It is divided into three components.
  •   M for Model
  •   V  for View
  •   C   for Controller.

It is an architectural pattern through which web application can be developed.It sets some standards through which request response will follow. or Separates code into Model,View and Controller components. so that MVC applications are highly testable.

Controller ->     1.It is an entry point in ASP.NET MVC applications web request. 
                         2.Prepares model and pass data to View.
                         3.State management done here 
View         ->    Set of User interface elements. 
Model      -->   Actual Application logic  can be written here.
                         for DB,XML,Entity Framework etc.,

Note: User Never calls View/Model Directly,

Controller talks to View and Model.
View talk to Model only.
Model Never talk to View or Controller.

User Requests are initiated through controller, Controller Pass Data to View, View Processes and Presents Html output to browser.