views:

409

answers:

2

Every module I've developed is separated into 2 folders:

  1. DesktopModules/[ModuleName] - contains .aspx and .aspx.cs files.
  2. Modules/[ModuleName] - contains a class library project with the rest of the code (.cs files).

I've heard that you can use a special project template that handles .aspx, .cs and much more module related file types - under one project (like some special class library). I'd like to get recommendations for a DNN module (5.0+) project template for visual studio 2008.

+2  A: 

Well, the simple answer is to use a Web Application project (instead of a Web Site project) within Visual Studio.

You can also check out Creating DotNetNuke Modules using a Web Application Project (WAP) on Ian's blog for some more details on how that works.

bdukes
Does it supports AJAX?
Eran Betzalel
There is nothing in the Web Application Project (or the C# Template in Ian's post) that would prevent you from using AJAX, though there's nothing in there that specifically aids in using AJAX, either. What sort of support are you wanting? For most simple scenarios, setting your module controls to use the EnablePartialRendering setting in DNN will be all that you need to do.
bdukes
A: 

Here is another template (with AJAX support) from code endeavors http://www.codeendeavors.com/Downloads.aspx.

Eran Betzalel