How should the View pull on the Presenter in the MVP pattern

Posted by John Leidegren on Stack Overflow See other posts from Stack Overflow or by John Leidegren
Published on 2010-04-05T13:52:15Z Indexed on 2010/04/05 13:53 UTC
Read the original article Hit count: 311

Filed under:
|

I have a ASP.NET Web Forms application and I'm using some dynamic controls in the view which depend on stuff that the presenter exposes. Is it okay for the view in this case to pull on the presenter for that data? Is there anything I should be extra careful about when considering testability and a loosely coupled design.

The page in this case has it's own page-life cycle and the presenter doesn't know about this. However, the page-life cycle dictates that somethings must occur at specific moments in the page-life cycle. This smells like trouble... Any known pit falls?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about mvp