Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

Affordable ASP.NET Hosting Service
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Active Modules -- Active Forums for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

OnyakTech
The best choice for your web site host, email hosting, and domain registration.
CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
AspDotNetStoreFront - E-Commerce by Design - The Leading ASP.NET shopping cart platform for developers!
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Writing controls to be nested within modules (but still using the DNN framework.)
Previous Previous
 
Next Next
New Post 12/28/2007 11:24 AM
Unresolved
User is offline William Feldhaus
6 posts
10th Ranked


Writing controls to be nested within modules (but still using the DNN framework.) 

Here's my idea; I want to build a module that is split into a handful of custom controls. The module will consist of a dropdown to select which control to view. These controls need access to the DNN framework (portal info, user info, role info, etc) but separate from the module definition. They will be in the same VS project and compiled into the same DLL however. A few questions came up while concocting this plan;

  • Is this possible?
  • Do I still need to inherit PortalModuleBase?
  • Can I just drop the control into the main module page like I would a normal custom control?

Any help would be appreciated. Plan B is to put everything into one module and split the would-be-custom-controls into ASP.NET panels to control visibility. Plan B is not ideal though as the project would become hard to manage pretty quick.

Thanks.

 
New Post 12/28/2007 12:29 PM
User is offline Chris Hammond
2682 posts
engagesoftware.com
5th Ranked








Re: Writing controls to be nested within modules (but still using the DNN framework.) 

Go with PlanA

A really quick overview of how to do this.

1. Setup your main control, add a module definition in DNN for this control.

2. Place a dropdown list and a Placeholder Control on this user control.

3. Based on the selected index of the dropdown changing do a postback, load a control into the placeholder.

The other "controls" are all user controls, if you want them to access DNN API information, make them user controls that inherit from PortalModuleBase

Let me know if you have any questions.


Chris Hammond
Engage Software
St. Louis, MO
314.966.4000


The leading provider of DotNetNuke skinning, training and custom module development.
Official DotNetNuke® Training Provider
 
New Post 12/31/2007 4:24 AM
User is offline William Feldhaus
6 posts
10th Ranked


Re: Writing controls to be nested within modules (but still using the DNN framework.) 

So each control that I would drop in the main module control would be written as a module control itself? And just not included in the module definition?

 
New Post 12/31/2007 10:09 AM
User is offline Chris Hammond
2682 posts
engagesoftware.com
5th Ranked








Re: Writing controls to be nested within modules (but still using the DNN framework.) 

That is generally the approach I take when developing complex modules William, only one or two module definitions, possibly hundreds of controls.


Chris Hammond
Engage Software
St. Louis, MO
314.966.4000


The leading provider of DotNetNuke skinning, training and custom module development.
Official DotNetNuke® Training Provider
 
New Post 1/2/2008 9:48 AM
User is offline Mitch Sellers
5316 posts
www.mitchelsellers.com
3rd Ranked




Re: Writing controls to be nested within modules (but still using the DNN framework.) 

I would agree with Chris on this one.  I am personally moving to this for some of my projects and I like the way it is working thus far.


-Mitchel Sellers
MCITP, MCPD, MCTS
Director of Development
IowaComputerGurus Inc.
View Mitchel Sellers's profile on LinkedIn

Visit mitchelsellers.com for DotNetNuke tutorials, modules and technical help

Custom DotNetNuke Services Available (Development, etc).

My sites are hosted with 3Essentials
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Writing controls to be nested within modules (but still using the DNN framework.)
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Disgrafic
Diseño y creación de portales web dinámicos :: Desarrollo de módulos personalizados :: Soluciones a medida :: Imagen Corporativa :: Tu proveedor DNN en España
www.disgrafic.com
DM Analytics, LLC
DM Analytics, LLC provides software solutions that facilitate rapid development of independent or dependent datamarts and their associated web-based reporting.
www.dmanalytics.com
Integral Hosting | DNN only $14.95/month
Experienced .NET hosting on Windows 2003, ASP.NET 1.1 & 2.0, MSSQL with real technical support.
www.integralhosting.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP