notifications - ASP.NET MVC - Models notifying the Views? -


in of classic descriptions of mvc, model notifies views via observer pattern. seems me doesn't happen asp.net mvc, , 1 of fundamental relationships between model, view, , controller missing.

is case? if so, why?

views in asp.net mvc stateless. exist short time , sent down client.

the process goes this:

  1. request comes in controller.

  2. controller retrieves model , instantiates view (passing model).

  3. the view rendered, markup returned client, , disposed of.

therefore, since view no longer exists after sent client...there's nothing notify model changes.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -