MVC design pattern - who loads view initially

Posted by enableDeepak on Stack Overflow See other posts from Stack Overflow or by enableDeepak
Published on 2011-03-15T07:58:38Z Indexed on 2011/03/15 8:10 UTC
Read the original article Hit count: 186

Filed under:

This query is about MVC design pattern in general and not ASP.net MVC framework

I understand in MVC (desktop application):

1. User clicks something in view 2. this is passed on to controller to manage 3. controller makes some changes in Model 4. Model calls method on view which has the logic to refresh UI

Questions around these:

Q1) Can controller also modify View or Model only updates View?

Q2) When screen loads for the first time, there is no Model change. Then, who fetches data from model and populates view? View directly calls Model and populates itself OR controller gets data and passes to view method OR some dummy event is raised at Model which updates View?

© Stack Overflow or respective owner

Related posts about mvc