liptonIcedTea
Well-known member
- Joined
- Jan 18, 2007
- Messages
- 89
- Programming Experience
- 1-3
Hi,
I have a page where there is a tree view on the left and a placeholder on the right. Depending on which node is selected, it loads a webcontrol into the placeholder.
The problem here is that I only know what the webcontrol to load in after the NodeChanged event is raised and that only happens after the form is re-loaded
At the moment, the webcontrol is loaded into the placeholder but the events are not wired probably. So say my webcontrol has a button, then it is going to raise any events when the button is clicked.
Is there anyway around this? I'm not really sure what is going on, I think it has something to do with the order in which ASP.NET events are raised, and somehow it is too late to wire events after the NodEChanged event has been called but not too too late to load the control itself.
I have a page where there is a tree view on the left and a placeholder on the right. Depending on which node is selected, it loads a webcontrol into the placeholder.
The problem here is that I only know what the webcontrol to load in after the NodeChanged event is raised and that only happens after the form is re-loaded
At the moment, the webcontrol is loaded into the placeholder but the events are not wired probably. So say my webcontrol has a button, then it is going to raise any events when the button is clicked.
Is there anyway around this? I'm not really sure what is going on, I think it has something to do with the order in which ASP.NET events are raised, and somehow it is too late to wire events after the NodEChanged event has been called but not too too late to load the control itself.