SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to create a custom web part using MVC?

share|improve this question
up vote 1 down vote accepted

Some developer have somehow managed to adapt the Microsoft MVC pattern to SharePoint (sample), but it would require additional work (and sometimes modification to the web.config files). Furthermore, the mvc pattern is not easily adaptable to the web part pattern SharePoint is based on.

Your best bet would be to resort to a more traditional MVP pattern, as show by the patterns & practices SharePoint Guidance project. There are also some codeproject projects that attempt to create a custom version of the mvc pattern, but -from my experience- the MVP pattern from the guidance is usually more suitable to work with.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.