Wednesday 6 July 2016

ASP.NET MVC Pattern

Posted by : Manav Pandya

ASP.NET MVC is a free and fully supported framework for building web applications that use the model-view-controller pattern. 

Like :  ASP.NET Web Forms,

 ASP.NET MVC is built on top of the ASP.NET Framework. This means you can use
in ASP.NET MVC applications the same APIs for security, state management, membership, caching, and so on that you could use in traditional ASP.NET Web Forms applications.




 [ 1 ]  Model 


The model in the MVC pattern represents the parts of the application that implement the data domain logic.

The operation of the model might come from the generation of classes representing objects in a data store such as a 
database (for example, Entity Framework data classes).


[ 2 ] View


Views are the visible elements in the application. They are the components that typically show users data from 
the model. 



A view page typically receives a view model object from the controller (the view doesn’t care how this data 
was obtained—that’s the controller’s responsibility!). 



The view page contains HTML (and possibly some UI-related 
code) to determine how to render the model data back to the browser .


[ 3 ] Controller



The controllers are classes that collect the user requests, work with the model, and ultimately select a view to 
render the appropriate UI.


Thanks Reader's for reading ....



ASP.NET , MVC , ASP.NET MVC , C# , dotnet , AngularJS , ASP , Sql Server , LINQ , Interview , .NET Core , SQL , LINQ to SQL