Hi, i am new in the forum ^^
I have an issue
I got a webpage that uses a UserControl wich create dynamic controls on him, i need to create the controls on the Page_PreInit event so i can access to them in the postback when the user do a click, but when i am at the PreInit event the UserControl is null so i cant create any control.
Can someone explain how to do this?
in my specific case my user control got 2 accordions, and 2 buttons, the idea is moving panes from one acccordion to another, so i created dynamic panes with dynamics controls like, checkbox, textbox, etc and add to the accordion, then user check the checkboxs on the panes, and by clicking pass those panes to the other accordion, the problem i got is that on postback the accordions on the userControl dont have any panes so i need to create them on Page_PreInit to maintain the state.
Thx!
I have an issue
I got a webpage that uses a UserControl wich create dynamic controls on him, i need to create the controls on the Page_PreInit event so i can access to them in the postback when the user do a click, but when i am at the PreInit event the UserControl is null so i cant create any control.
Can someone explain how to do this?
in my specific case my user control got 2 accordions, and 2 buttons, the idea is moving panes from one acccordion to another, so i created dynamic panes with dynamics controls like, checkbox, textbox, etc and add to the accordion, then user check the checkboxs on the panes, and by clicking pass those panes to the other accordion, the problem i got is that on postback the accordions on the userControl dont have any panes so i need to create them on Page_PreInit to maintain the state.
Thx!
Comment