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  |  

AspDotNetStoreFront
  Ads  
Webhost4Life - $4.95 Windows Hosting
 


  Sponsors  

Meet Our Sponsors

SourceGear - Tools for Developers
.: CounterSoft :.
telerik
ExactTarget email software solutions
Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Configure It! (...  Dynamic Module Creation
Previous Previous
 
Next Next
New Post 4/16/2008 8:08 AM
Unresolved
User is offline BC
3 posts
10th Ranked


Dynamic Module Creation 

I am trying to write a module that can show another module (any other defined module) inside it.

As a simple test I have done this in the load event handler of my module :

ModuleController mc = new ModuleController();
ModuleInfo mi = mc.GetModule(6528, 187);
string containerSource = mi.ContainerSrc.Replace("[G]", "Portals/_default/");
UserControl container = (UserControl)this.Page.LoadControl("~/" + containerSource);
PortalModuleBase module = (PortalModuleBase)this.Page.LoadControl("~/" + mi.ControlSrc);
module.ModuleConfiguration = mi;
container.Controls.Add(module);
this.Controls.Add(container);

This works just fine except that the module appears twice.

What am I doing wrong here ?

 
New Post 4/16/2008 2:18 PM
User is offline BC
3 posts
10th Ranked


Re: Dynamic Module Creation 

This seems to have miraculously fixed itself following and IISRESET.

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Configure It! (...  Dynamic Module Creation
 


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.

 


Expressnet - DotNetNuke Hosting
Expressnet provide premium quality ASP.NET Web Hosting. We specialise in Windows based products including ASP.NET and Microsoft SQL Server. We offer fantastic value packages for DotNetNuke hosting. We also offer free asp.net web hosting
www.expressnet.com.au
Softech Development, Inc.
We help your business work smarter with DotNetNuke. Whether you need a new implementation, a custom module or skin for an existing implementation, or integration with your business processes, Softech has the experience and expertise to make it happen.
www.softechdevelopment.com
Module Development by Engage Software
Specializing in custom module development, training and skinning.
www.engagesoftware.com

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