Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET MVC within DotNetNuke?

Is it possible to build a DNN module that uses ASP.NET MVC?

Granted that DNN doesn't support ASP.NET MVC out of the box...but since both DNN and MVC run on top of the ASP.NET pipeline...

The reason I ask. Large legacy website running on DNN:

http://blahblahblah.com

I'd like to stick an existing ASP.NET MVC webpage/application here:

http://blahblahblah.com/subfolder

Is this better done by setting up a virtual directory etc on the server, or is there a way to integrate this with DNN?

like image 244
Swingline Rage Avatar asked Oct 07 '10 10:10

Swingline Rage


3 Answers

DNN is quite tightly tied to Webforms. ASP.Net MVC would be very difficult, maybe impossible to integrate in a module. However DNN does support Webforms MVP (Model View Presenter) which allows for all of the structural/testing benefits of MVC in the WebForms context. All new modules developed by DotNetNuke Corp. are using the Webforms MVP pattern.

Here is a link to get you started Step by Step Webforms MVP and DotNetNuke – Part 1.

like image 83
ScottS Avatar answered Nov 08 '22 02:11

ScottS


Download my DnnMvcBridge project and you can absolutely build DNN modules with MVC 4 and Razor.

https://dnnmvcbridge.codeplex.com/

like image 35
JBeckton Avatar answered Nov 08 '22 04:11

JBeckton


For Asp.Net MVC, take a look to this:

http://www.charlesnurse.com/post/Developing-Modules-for-DotNetNuke-using-ASPNET-MVC-Part-1-Introduction.aspx

and this:

http://bigfootmvc.codeplex.com/

which is not Asp.Net MVC, but another MVC framework (it's supposed to not require anything not native to the DNN dev environment).

like image 39
hernant Avatar answered Nov 08 '22 02:11

hernant