Friday, January 25, 2008

MVP Design Pattern vs. MVC design Pattern

JHA FundPerformance uses MVP ( Model View Presenter) design Pattern to render Fund Performance Data. In fact, ASP.Net uses Code-Behind to convert user action/events to Request to data. But JHA FundPerformance add one more layer MTData as DataObject. Specifically, Object Data Source explicitly separate Select/Insert/Update actions from other User Events handler in ASP.Net code-behind and that is the reason we called it "DataObject Presenter".

As a general rule, MVP requires user requests hit View first and then decide which Presenter method to call. On the contrary, MVC (Model View Controller) as implemented in ASP.Net MVC framework CTP routes user requests to Controller first and then decide which View to render.

No comments: