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...NEWBIE - Is it possible to develop custom module using ASP.NET MVC ?NEWBIE - Is it possible to develop custom module using ASP.NET MVC ?
Previous
 
Next
New Post
9/29/2008 5:55 AM
 

Hello Friends,

A newbie here..

Still learning about DNN and whole ASP.NET , just successfully installing DNN 4.9., playing a bit with it.. Awesome.. !!

 

A question tough, heart a lot about the new ASP.NET MVC model and the 'why' it is better than Webforms, will it be possible to build DNN Module using ASP.NET MVC given DNN is (still) using Webforms ?

 

May thanks - sorry for such newbie question.. :(

 
New Post
9/29/2008 11:42 AM
 

I have spent some time revieing the various previews of MVC (and I like it a lot). However, the question of whether ASP.NET MVC is "better" than standard ASP.NET Webforms is a matter of opinion.

In fact, Microsoft go out of their way to make the point that MVC is different from Webforms and is just another tool in the arsenal for ASP.NET developers.

There are a number of things you gain from MVC - better testability, better control of rendered HTML being the most common mentioned.  But there are also a few things you lose, v13wstat3/Postback, the abstraction of a control framework over a stateless protocol (HTTP).

Unfortunately, while we may be able to utilise some of the new features introduced as part of the MVC framework (such as Routing and Abstractions), DotNetNuke is heavily in the Webforms camp.  Any module you build needs to inherit from a DNN baseclass - this in itself forces you to use the Webform paradigm, as the DNN base class is a UserControl.

In DNN 5 we have changed the requirements so that Modules just need to implement an Interface (IModuleControl) but there are still major differences in how we deal with Module Injection that would make it difficult if not impossible to support the MVC paradigm in our modules.


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
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...NEWBIE - Is it possible to develop custom module using ASP.NET MVC ?NEWBIE - Is it possible to develop custom module using ASP.NET 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