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

HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...DNN as web app project vs web site projectDNN as web app project vs web site project
Previous
 
Next
New Post
4/25/2009 11:45 AM
 

has there been any discussion of releasing any of the new versions of DNN 5 as a web app project instead of web site project? especially for the simpler "Install" version of DNN?

For those who prefer developing in web application project mode instead of web site project mode, what have you been doing? Converting the DNN to web app mode? Or converting your controls to web site mode?

And then what do you do when you're trying to develop your controls so that they will operate both inside of and also outside of DotNetNuke? For the latter, I mean completely independent of any DNN installation, just a regular ASP.NET application.

Thanks for any discussion....

 


CT
 
New Post
4/25/2009 5:26 PM
 

 It's been posted before about the web app vs web site. I think the general result is "there's no significant advantage" to the change. 

 

As for making a module for both DNN and general ASP - Possible, of course. A little more difficult though.

My recommendations for this would be (this is very very top of the head)
* Use local variables for any DNN variables (such as UserID, TabID, ect)
* You will have to wrap DNN specific code in compile time conditionals for the "Solution Configurations" corresponding to DNN and nonDNN configurations. As well as create those configurations. (Debug and Release are the defaults in solution configurations) This will allow you to do things like
#if DNN 
    public partial class YOURMODULE : PortalModuleBase, IModuleListener
#elseif ASP
    public partial class YOURMODULE : UserControl
#endif
This will probably need to be done in quite a few places. I doubt this would be effective for more advanced modules - without careful planning.
A good idea might be to create a wrapper for the DNN systems you interact with so you can swap between DNN and you ASP site with only a back end change, and not swapping configurations. I've tried neither of these - it's all top o' the head.
 

I believe that DNN can run modules built in both app or site projects - so use your preference.

 
New Post
4/25/2009 5:37 PM
 

CT wrote
 

has there been any discussion of releasing any of the new versions of DNN 5 as a web app project instead of web site project?

Well as a person who has an entire site (DotNetNuke® Module Development Help Website) devoted to the "web site project" model I would have to ask, "Is there anything you need to do that you can't with the way things are now" ?



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
New Post
4/25/2009 6:52 PM
 

Baatezu,

Thanks for suggestions. Your thoughts confirm in fact what I have been doing.

Though I can report only partial success, and it seems that I still have to do some manual coding back/forth between the two cases despite use of the switch DnnIntegrated = true for the DotNetNuke case and DnnIntegrated = false for the regular ASP.net case. That's also because the DotNetNuke project is in web site project and my regular ASP.net work is in web app project. So I have to switch the CodeFile's to CodeBehind's etc etc.

And it's still a general nuisance. In my opinion, DotNetNuke would be greatly, in fact, super super greatly enhanced by modifications to the Core Framework that would allow better interoperability of standard ASP.Net *.ascx controls for use both with DotNetNuke and with regular ASP.Net.

Michael,

So sorry, but I disagree --- development of controls in the DotNetNuke web site project context is far from ideal. It's so much simpler cleaner and easier to do in a regular ASP.Net environment. Once I prove that it's working there, then I port it to the DotNetNuke environment. There's just way too much overhead and everything else in the DotNetNuke environment to complicate and slow down development of a control that ideally can and should be used in a variety of contexts, and NOT solely DotNetNuke.

 


CT
 
New Post
4/26/2009 8:38 PM
 

CT wrote
 

Michael,

So sorry, but I disagree --- development of controls in the DotNetNuke web site project context is far from ideal. It's so much simpler cleaner and easier to do in a regular ASP.Net environment. Once I prove that it's working there, then I port it to the DotNetNuke environment. There's just way too much overhead and everything else in the DotNetNuke environment to complicate and slow down development of a control that ideally can and should be used in a variety of contexts, and NOT solely DotNetNuke.

The only problemn is you can't develop controls in DotNetNuke to be used elsewhere?

Now you can easily develop controls using WSP. In this tutorial:

http://www.adefwebserver.com/DotNetNukeHELP/SimpleSurvey/

This control:

DynamicControlsPlaceholder.cs

is consumed in this page:

View.ascx

The development was easy and straightforward. No complicated configuration or anything.



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
Previous
 
Next
HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...DNN as web app project vs web site projectDNN as web app project vs web site project


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