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:
request comes in controller.
controller retrieves model , instantiates view (passing model).
the view rendered, markup returned client, , disposed of.
therefore, since view no longer exists after sent client...there's nothing notify model changes.
Comments
Post a Comment