• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 767
  • 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
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

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