Brief introduction about MVC [Resolved]

Posted by Varun66 under ASP.NET MVC on 8/26/2013 | Points: 10 | Views : 2279 | Status : [Member] | Replies : 2
Hi,

Im new to MVC.
So can you give me a brief introduction about MVC.?


Thanks,
Varun66.




Responses

Posted by: Kmandapalli on: 8/26/2013 [Member] Silver | Points: 50

Up
0
Down

Resolved
Hi,

MVC stands for Model, View, and Controller.

Model:
* Nothing but a class where you can declare all your properties.
* It is the part of the application that handles the logic for the application data.
Often model objects retrieve data (and store data) from a database.
* The model object knows about all the data that need to be displayed
* It is model who is aware about all the operations that can be applied to transform that object. It only represents the data of an application.

View:
* Nothing but presentation page ie, (default.aspx in asp.net).
* is the parts of the application that handles the display of the data.
* Most often the views are created from the model data.
* The view object refers to the model. It uses the query methods of the model to obtain the contents and renders it. The view is not dependent on the application logic. It remains same if there is any modification in the business logic. In other words, we can say that it is the responsibility of the view’s to maintain the consistency in its presentation when the model changes.

Controller:

* All the Actions to performed are declared in this controller.
* It is the part of the application that handles user interaction.
* Typically controllers read data from a view, control user input, and send input data to the model.
* Whenever the user sends a request for something then it always go through the controller. The controller is responsible for intercepting the requests from view and passes it to the model for the appropriate action. After the action has been taken on the data, the controller is responsible for directing the appropriate view to the user. In GUIs, the views and the controllers often work very closely together.

Mark as answer if satisfied...

Regards,
Shree M.





Kavya Shree Mandapalli

Varun66, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Bandi on: 8/26/2013 [Member] [MVP] Platinum | Points: 25

Up
0
Down
Hi Varun,
In dotnetfunda.com only you can get detailed explanation with code on MVC related concepts
http://www.dotnetfunda.com/articles/article2092-introduction-to-aspnet-mvc-csharp-part-1.aspx
NOTE: Search for MVC in Articles section of dotnetfunda.com

Mark This Response as Answer
--
Chandu
http://www.dotnetfunda.com/images/dnfmvp.gif

Varun66, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response