Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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

share|improve this question
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.