• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 757
  • Last Modified:

Modal Popup, Custom Controls, and the ASP.NET Wizard control

I am using ASP.NET 3.5 and I have a page that has an ajax modal popup window. In the modal popup their is a PlaceHolder. I am trying to dynamically add a user control that contains a Wizard control to this placeholder.
Everything appears to work but as soon as I click a button in the Wizard control the sidebar and/or the entire user control disappears. This thing works fine with login controls and static controls, just not with the wizard control. Any help would be greatly appreciated.
I have really been pulling my hair out on this one.
Thanks
Dustin
I added the relevant code in an attachment rather than trying to stick it all in here.

Open in new window

ModalPopupsFiles.zip
0
Dixon8402
Asked:
Dixon8402
  • 3
  • 3
1 Solution
 
tetorvikCommented:
You need to re-create dynamic controls on page_init to get events hooked up correctly.
See http://geekswithblogs.net/shahed/archive/2008/06/26/123391.aspx
0
 
Dixon8402Author Commented:
I fully understand that. Everything is working fine with my login control since all I have to do is re-register the authenticate event on every postback. The problem is that the Wizard control is much more complicated and I cannot figure out which events need registered.
0
 
Dixon8402Author Commented:
If anyone wants the entire solution to look at or test let me know your email and I will be happy to send it.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
tetorvikCommented:
Can you send me your solution. If I can be for any help.
teemu(dot)torvikoski (at) gmail(dot)com
0
 
tetorvikCommented:
Hi Dixon,

did you get your problem solve with the suggestion I send?

The suggestion was basically to reload dynamically created user controls into control tree by using LoadControl method.

Similar issue/answer can be found from:
http://www.experts-exchange.com/Programming/Languages/.NET/Visual_Studio_.NET_2005/Q_23207581.html
0
 
Dixon8402Author Commented:
Sorry for not accepting soon, got caught up in some other things but you were definitely on point. I was doing the LoadControl method at the beginning then throwing everythign in  a session variable.
I didn't realize I have to use LoadControl on every postback. THanks
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now