Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...DNN module development using MVC?DNN module development using MVC?
Previous
 
Next
New Post
3/31/2010 11:50 AM
 

Thanks for the responses. While WebFormsMVP is what DNN is using, I want to concentrate on MVC as a full skill I want to acquire for work as a .NET developer outside of DNN, and if I can use it inside DNN as well, the better.  It seems it can be used but only for when using default controller and index.

I know DNN is not migrating to MVC. There are hybrid ASP.NET applications which use both WebForms and MVC and wondered if DNN can be used like them.

 
New Post
3/31/2010 4:06 PM
 
I also know about including WebFormsMVP in DNN. I'm already experimenting with it, as I was before it was incorporated in DNN, because it's a good testable architecture. So a very good decision I would say. Nevertheless I fully agree with Tony: I also am developing in MVC as a full skill outside of DNN and would like to be able to use those in DNN as well. And I think there will be quite a few developers in the future who will face the same issues, so if full MVC development would be possible it would be great!

Regards,
Marcel v.d. Bogaard

www.b-smartwebsolutions.nl
 
New Post
4/1/2010 12:29 AM
 

A couple of points about DNN and MVC.

  1. Yes it is true that there are hybrid webforms/mvc apps - but in these scenarious Page1.aspx is using webforms and Page2.aspc is using MVC - ie the pages are independent.  DNN uses a single physical page Default.aspx, so any MVC module has to live inside a webform. 
  2. Webforms rely on a single <form> tag in the html to handle the event model.  MVC pages can have multiple forms.  HTML does not support a <form> within a <form>.  Therefore any MVC module will not be able to use its own <form> and will have to rely on the base <form> in the Default.aspx.
  3. The lack of a form means that some of the MVC helper methods will not be able to be used.
  4. Normal MVC routing deals with the full url, but DNN's FriendlyUrl provider manages its url, therefore to support MVC modules we will have to manage the routing.  This will mean that MVC module developers will not be able to use some of the MVC routing helpers.

Given the caveats above I believe that this is acheivable - as long as MVC module developers realise the restrictions in (2) and (3).

After Easter I propose to start working the routing piece for the dnn labs project.


Charles Nurse
Chief Architect
Evoq Content Team Lead,
DNN Corp.

Want to contribute to the Platform project? - See here
MVP (ASP.NET) and
ASPInsiders Member
View my profile on LinkedIn
 
New Post
4/2/2010 5:50 AM
 
Hi Charles, That would be great! Thnx. Marcel

Regards,
Marcel v.d. Bogaard

www.b-smartwebsolutions.nl
 
New Post
4/2/2010 1:50 PM
 
Robert wrote:
You might also want to look into using MVP. Support for that is being added to the core of DNN. see http://www.dotnetnuke.com/Community/Blogs/tabid/825/EntryId/2534/Test-Driven-example-module-nearly-refactored-to-Web-Forms-MVP.aspx and http://www.dotnetnuke.com/Community/Blogs/tabid/825/EntryId/2522/Creating-Testable-Modules-ndash-Redux-ndash-Now-Baked-into-the-Core.aspx
 

There's a hanselminutes podcast where one of the two coders of WebFormsAMVP is interviewed. While webFormsMVP is a good solution, I want to learn MVC as a new way for creating web apps and because that's the direction many developers/companies are going to. Not really want to use a niche framework for testability usage.

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...DNN module development using MVC?DNN module development using MVC?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out