views:

3890

answers:

7

Hi,

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

+1  A: 

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.

Slace
+13  A: 

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
+12  A: 

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

I published it about 5 minutes ago.

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

Still early days but u get the idea.

Regards

Simon

Simon
+2  A: 

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
I was wondering about this logic myself. Are there any examples of using WSS web services in a .Net MVC application?
Hedley Lamarr
A: 

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
A: 

May be this will help you:

http://simone.codeplex.com/wikipage?title=Host%20Aps.Net%20Mvc

+4  A: 

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
+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.
Javaman59
+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