bigoldbulldog
Programmer
Hi,
I am loading 1 of 4 custom controls dynamically into a placeholder control. These controls have a variety of dropdowns, gridviews and other things.
I load from a LinkButton_OnClick event using PlaceHolder.Controls.Add(LoadControls("~/CustCtrl1.ascx")); and all is fine until I try using one of the dropdowns or other controls in the custom control. The the page is posted back without the dynamic control at all.
The dropdown does have autopostback="true". However, if I do the dynamic load in the page load event, then the custom control works fine. But I want to change that control using the OnClick event. Any thoughts on getting this to work?
Cheers,
ND![[smile] [smile] [smile]](/data/assets/smilies/smile.gif)
I am loading 1 of 4 custom controls dynamically into a placeholder control. These controls have a variety of dropdowns, gridviews and other things.
I load from a LinkButton_OnClick event using PlaceHolder.Controls.Add(LoadControls("~/CustCtrl1.ascx")); and all is fine until I try using one of the dropdowns or other controls in the custom control. The the page is posted back without the dynamic control at all.
The dropdown does have autopostback="true". However, if I do the dynamic load in the page load event, then the custom control works fine. But I want to change that control using the OnClick event. Any thoughts on getting this to work?
Cheers,
ND
![[smile] [smile] [smile]](/data/assets/smilies/smile.gif)