![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi! In my templated databound control (inherited from CompositeDataBoundControl) I have one template and one string get/set property. When CreateChildControls(IEnumerable dataSource, bool dataBinding) is being called, the string property is sometimes set and sometimes not. I have figured out that if the templated contains any form controls (TextBox, RadioButton etc.), CreateChildControls are called prior to the string property is set. If the template on the other hand does not contain any form controls (like only a Label), CreateChildControls are called after the string property is set. I need the string property to be set when CreateChildControls are called, while it determines what default template to implement. Why am I experiencing this behavior? /Paul |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |