locked
MVC pattern RRS feed

  • Question

  • User-957313 posted

    how the data pass from one layer to another layer in mvc design pattern...

    Thursday, April 1, 2010 8:47 AM

Answers

All replies

  • User303162096 posted

    I really like this explaination/example

    http://www.c-sharpcorner.com/UploadFile/napanchal/MVCDesign12052005035152AM/MVCDesign.aspx


    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, April 1, 2010 8:56 AM
  • User-525215917 posted

    MVC pattern has three components:

    • model - data that is moved between client and server; model also knows how to get data from data source and how to save data,
    • view - presentation of view (ASP.NET MVC uses ASP-like syntax for views),
    • controller - determines what visitor asked, instantiates model, gives it to view and returns the result.

    You can create strongly types views to use your custom models with view. Take a look at example.

    Saturday, April 3, 2010 3:43 PM