0

I'm new in sharepoint. Can anyone me with a sample code to use MVP pattern in sharepoint webparts.

Many thanks

Sandra
  • 11
  • 3
  • 1
    possible duplicate of [Popularity of MVP for SharePoint WebParts](http://stackoverflow.com/questions/1665163/popularity-of-mvp-for-sharepoint-webparts) – Rich Bennema Aug 24 '11 at 18:44

2 Answers2

1

SharePoint and MVC/MVP has been asked multiple times on StackOverflow - check out

Sharepoint to support MVC

Popularity of MVP for SharePoint WebParts

SharePoint WebParts MVP Pattern

Community
  • 1
  • 1
Ryan
  • 23,871
  • 24
  • 86
  • 132
  • There is no implementation in any of the posts – Sandra Aug 22 '11 at 14:27
  • Did you actually read them or do you expect to be spoon fed? 1) There is a link to http://sharepointmvc.codeplex.com/ 2) Many people think its not a good idea, SharePoint is built upon webforms, not MVC/MVP so why are you trying to fit a square peg in a round hole. – Ryan Aug 23 '11 at 09:52
  • Some people may not care about the code quality and having a testable code but I do!!! – Sandra Aug 23 '11 at 10:01
  • MVP is not the only way to achieve those objectives. Good luck with that square page. – Ryan Aug 23 '11 at 12:42
0

Check this link Building a Web Part that Implements the MVP Pattern has lots of useful links to other blogs.

One of those links talks about SharePoint Service Locator which is worth looking into. More details about this can be read from here -> http://msdn.microsoft.com/en-us/library/ff647574.aspx

Chekkan
  • 76
  • 1
  • 5