Dec 21, 2011, 10:20 AM
[CLOSED] Problem on dynamic load user control
Hi,
my project needs to load dinamically user controls from file and add it to a panel depending from wich toolbar button is clicked; my application scenario need to do it in the OnInit even of the page (and not in the single Button's click event); then i need to do something in the Page_Load of the specific user control.
In this scenario the "bug" is that if you want to (for example) change the text value of a TextField that is inside the usercontrol during the page load event, it doesn't work!
During the debugging it seems to do works correctly, but the rendered output is "blank text".
The same action done on a classic textbox .NET works intead correctly.
I've prepared an example project, but the upload mechanism fails!How can i send you the complete project?
Thanks in advance
my project needs to load dinamically user controls from file and add it to a panel depending from wich toolbar button is clicked; my application scenario need to do it in the OnInit even of the page (and not in the single Button's click event); then i need to do something in the Page_Load of the specific user control.
In this scenario the "bug" is that if you want to (for example) change the text value of a TextField that is inside the usercontrol during the page load event, it doesn't work!
During the debugging it seems to do works correctly, but the rendered output is "blank text".
The same action done on a classic textbox .NET works intead correctly.
I've prepared an example project, but the upload mechanism fails!How can i send you the complete project?
Thanks in advance
Last edited by Daniil; Dec 29, 2011 at 1:37 PM.
Reason: [CLOSED]