Looking for an MVP explanation and example

 
50   50
May 21, 2012
 
Hello 
From what I understand, MPV is a pattern to be used in Windows application.
Is this correct?

If so, could someone provide an example?

Thanks!
 1 comment
 
MVP can also be used for web apps. my last job we used MVP for out web apps. --- Dennis Tucker  May 22, 2012



50   50
May 24, 2012
Not only for Windows. It's for Web Application as well.
Example: Any WebForm which having following functionallity like
  • Web Form With Validation. It can be entry or display form. (It's nothing but View and Presentation)
  • Manipulating data according business process.(It's nothing but Service or Domain).
  • Interacting with DB for retrieving and storing data. ( It's nothing but Data Access)
Regards,
Nirav Valera





1,364   100.0
May 29, 2012
Some info here..http://www.dofactory.com/topic/1597/model-view-presenter-with-both-webforms-and-winforms/1782.aspx#p1782

M
VP nicely plays with windows app as well as web forms.  We recently migrated a windows forms app built on MVP to asp.net web forms MVP.

The migration was simple as only the views was required to be coded.  All other things remained same.

To the beginner MVP may seem too much of abstraction, but once you get the crux of it, everything falls in its place.  It's definitely a recommended approach to big enterprise application.

Some more examples here..
http://geekswithblogs.net/rajeshpillai/category/10990.aspx