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  |  

ExactTarget - What's Your Score
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
The best choice for your web site host, email hosting, and domain registration.
 


  Sponsors  

Meet Our Sponsors

ExactTarget email software solutions
Merak Mail Server
FCKeditor Project
Salaro -- Skins and more
OnyakTech
The best choice for your web site host, email hosting, and domain registration.
 


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
2471 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
2471 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
5028 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.

 


DNNCovered.com - Your Offshore Dotnetnuke Partner
Dnncovered.com is the only Dotnetnuke offshore outsourcing center specializes in DNN skinning and module development with lowest pricing and quality service. Our staff is dedicated to websites based on DNN and our graphic designers are creative and imaginative well enough to provide customers the complete set of skinning solutions and packages
www.dnncovered.com
PointClick.Net DNN Solutions
DotNetNuke Hosting Platform for Business and personal use.
PointClick.Net Hosted Solutions
Advanced Web Portals by Infoscaler
Infoscaler is a California based company that provides advanced Web Portals, E-commerce Sites, Database Applications and Intranet Solutions on the DotNetNuke and Microsoft.NET platforms.
www.infoscaler.com

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