You can squize ASP.NET MVC in there by using the Internet Sites template but I will not recommend it. You can always call the SharePoint web services if you need your ASP.NET MVC to show lists from SharePoint or have the views content kept and edited in
SharePoint
Please click 'Mark as Answer' if my reply has assisted you
I prefer not to integrate ASP.NET MVC with the Sharepoint site. Not only it will cause more headache, but also when there is a problem with the Sharepooint site, it will take time to resolve. Sharepoint itself is quite complex and I often spend a lot of
times tracing the problems.
Unlike any ASP.NET 4.0 or ASP.NET MVC site (which are relatively easy to solve), Sharepoint is just different. It works differently :-)
If you are looking to have your SharePoint applications (Web Parts, _layouts pages) a well structured design with Separation of Concerns (SoC) in mind, you might want to check out Juicy Presentation
Pattern or Juipp for SharePoint, An MVC-like open source framework that works great with SharePoint and ASP.NET
WebForms.
sharepoint 2010 is asp.net 3.5 and doesn't support MVC. if you are using sharepoint 2013 which uses .net 4.0, then you can use MVC, but will need to change the web.config to allow MVC to run, but its not recommened. actualy with sharepoint 2013, even webfom
apps are no longer recommended. only javascript apps are recommeded, or external sites simular to facebook apps.
mathewthomas...
Member
16 Points
9 Posts
Sharepoint MVC
Feb 18, 2011 02:52 PM|LINK
Hi
Can we intergrate the MVC framework in Sharepoint 2007
tehremo
Star
10540 Points
1704 Posts
Re: Sharepoint MVC
Feb 18, 2011 03:23 PM|LINK
You should look at implementing MVP in SharePoint:
http://weblogs.asp.net/bsimser/archive/2006/07/18/Model_2D00_View_2D00_Presenter-Pattern-with-SharePoint-Web-Parts.aspx
ignatandrei
All-Star
137716 Points
22159 Posts
Moderator
MVP
Re: Sharepoint MVC
Feb 18, 2011 08:01 PM|LINK
sharepoint is webforms, mvc is not.
So I think it is very difficult.
You can look at
http://sharepointmvc.codeplex.com/
raduenuca
All-Star
24675 Points
4250 Posts
Re: Sharepoint MVC
Feb 19, 2011 03:37 AM|LINK
You can squize ASP.NET MVC in there by using the Internet Sites template but I will not recommend it. You can always call the SharePoint web services if you need your ASP.NET MVC to show lists from SharePoint or have the views content kept and edited in SharePoint
Radu Enuca | Blog
necro_mancer
Star
8169 Points
1595 Posts
Re: Sharepoint MVC
Feb 21, 2011 03:46 AM|LINK
I prefer not to integrate ASP.NET MVC with the Sharepoint site. Not only it will cause more headache, but also when there is a problem with the Sharepooint site, it will take time to resolve. Sharepoint itself is quite complex and I often spend a lot of times tracing the problems.
Unlike any ASP.NET 4.0 or ASP.NET MVC site (which are relatively easy to solve), Sharepoint is just different. It works differently :-)
Professional SQL 2008 R2 Service
mathewthomas...
Member
16 Points
9 Posts
Re: Sharepoint MVC
Feb 21, 2011 12:09 PM|LINK
i meant by using the MVC framework in the Sharepoint custom webpart
is it possible.....
raduenuca
All-Star
24675 Points
4250 Posts
Re: Sharepoint MVC
Feb 21, 2011 12:18 PM|LINK
No because the webparts don't fit in the MVC pattern. Use the MVP Pattern that is suited for ASP.NET WebForms applications.
http://weblogs.asp.net/bsimser/archive/2006/07/18/Model_2D00_View_2D00_Presenter-Pattern-with-SharePoint-Web-Parts.aspx
http://social.msdn.microsoft.com/forums/en/sharepoint2010general/thread/739f5488-cab4-4ce4-8066-9172a5d28c04
Radu Enuca | Blog
natdico
Member
4 Points
1 Post
Re: Sharepoint MVC
Dec 03, 2012 03:07 PM|LINK
If you are looking to have your SharePoint applications (Web Parts, _layouts pages) a well structured design with Separation of Concerns (SoC) in mind, you might want to check out Juicy Presentation Pattern or Juipp for SharePoint, An MVC-like open source framework that works great with SharePoint and ASP.NET WebForms.
bruce (sqlwo...
All-Star
37636 Points
5574 Posts
Re: Sharepoint MVC
Dec 03, 2012 03:37 PM|LINK
sharepoint 2010 is asp.net 3.5 and doesn't support MVC. if you are using sharepoint 2013 which uses .net 4.0, then you can use MVC, but will need to change the web.config to allow MVC to run, but its not recommened. actualy with sharepoint 2013, even webfom apps are no longer recommended. only javascript apps are recommeded, or external sites simular to facebook apps.