30

Is it possible to use the Asp.Net MVC framework within SharePoint sites?

Dave Markle
  • 95,573
  • 20
  • 147
  • 170

6 Answers6

21

This might be of interest to you http://www.codeplex.com/SharePointMVC

It is basically a library to help rendering ASP.MVC inside a SharePoint masterpage.

Still early days but you get the idea.

Simon
  • 33,714
  • 21
  • 133
  • 202
21

In ScottGu's blog from February 2008, he writes:

Currently MVC doesn't directly integrate with SharePoint. That is something we'll be looking at supporting in the future though.

There's a project on CodePlex for getting ASP.NET MVC to work in SharePoint: http://www.codeplex.com/SharePointMVC

Magnus Johansson
  • 28,010
  • 19
  • 106
  • 164
13

The following sharepoint site, www.themedicinecabinet.co.uk, was built using ASP.net MVC 2. This article explains how this was done http://vspug.com/mbailey/files/2010/04/Using-ASP.NET-MVC-2-with-Sharepoint-Publishing.pdf

martin bailey
  • 177
  • 1
  • 2
  • +10! I have looked at the start of the article, and it looks very, very promising. The author writes with apparent deep understanding of all the relevant issues. I hope to follow it through and implement it, and post back here to confirm my initial impressions, but that will be some time. – Stephen Hosking Sep 28 '10 at 01:42
  • +1 Very impressive, in depth example of how to fully integrate ASP.Net MVC 2 with a SharePoint site and access the resources of SharePoint from within MVC. Kudos. – Chris Latta Oct 22 '10 at 00:16
  • This link is dead but that one we have still to check amd joy http://jcapka.blogspot.com/2011/02/asp-mvc-and-sharepoint-2010.html – NoWar Apr 10 '13 at 13:31
4

One possible architecture is to use an asp.net or an asp.net mvc frontend. Then accessing sharepoint functionality via web services.

This has the benefit of giving you access to the functionality of sharepoint, without having the extra development cost of using sharepoint.

Shiraz Bhaiji
  • 64,065
  • 34
  • 143
  • 252
2

One thing you could do is create sharepoint "powered" apps with asp.net mvc just by referencing the SharePoint assembly.

I guess the Sharepoint Object Model would be your M in MVC.

jgarcia
  • 176
  • 5
2

I don't believe so, although you can upload standard ASPX files into SharePoint and have them operate I'm pretty sure that the URL rewritting is where it would come unstuck.

Aaron Powell
  • 24,927
  • 18
  • 98
  • 150