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  |  

telerik -- supercharge your DNN websites
  Ads  
Biz Modules provides professional business modules and solutions for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
OnyakTech
CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Configure It! (...  Add a control on the fly
Previous Previous
 
Next Next
New Post 8/18/2008 10:15 AM
User is offline jlpabich
17 posts
10th Ranked


Add a control on the fly 

I am trying to add a control on the fly from within another control.  I currently use:

 

 

NewQuestions AddNewQuestions = (NewQuestions)LoadControl(ModulePath + "NewQuestions.ascx");

 

Controls.Add(AddNewQuestions);

This displays the control just fine, but when I press any buttons on that control, it clears the whole page.  It acts as if it removes the whole control.  Is there a better way to do this?  All the controls are in the same module and all the ascx files are in the same project.

 
New Post 8/19/2008 2:22 AM
Online now... ErikVB
3124 posts
www.apollo-software.nl
4th Ranked










Re: Add a control on the fly 

try loading the control on pageInit


Erik van Ballegoij,
a view from my attic, my personal blog

The personal blog of Erik van Ballegoij

 
New Post 8/19/2008 1:49 PM
User is offline jlpabich
17 posts
10th Ranked


Re: Add a control on the fly 

That did not work.  Maybe I didn't explain myself enough.

 

I have one DNN module with three controls added to each, each its own aspx page within one project.  When I go to the page with the module added control1 is displayed.  When I finish filling out control1, I want to hide it and display control2.  I can hide it and display control2 and pass data to control2, but when I press a button or radio button on control2, the whole control disappears and the page goes blank.  I need to know how to keep this control active and visible with my data and handle button presses and other page events. 

 

Does anyone have any idea???

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Configure It! (...  Add a control on the fly
 


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.

 


Where Every Home is an Investment
Where Every Home is an Investment
www.nestbrokers.com
Faculty of Graduate and Postdoctoral Studies
At the graduate level, the University of Ottawa offers more than 180 graduate certificates, master's degrees and PhDs, as well as interdisciplinary programs such as Women's Studies and Canadian Studies. Many postdoctoral opportunities are available in both the sciences and the humanities. For further information, please consult the site of the Faculty of Graduate and Postdoctoral Studies.
www.grad.uottawa.ca
Vekkin Solutions
Vekkin Solutions provides complete website solutions and custom module development to churches and small businesses.
www.vekkin.com

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