M
Matt Sollars
Hi, all. I am really stuck here. I've written a few composite controls
before and fully understand the "typical" scenarios. However, this one is
far different. I understand that CreateChildControls must create the
controls in exactly the same way as it did before a post-back in order for
everything to "link" back up properly.
However, I have a composite control that creates a single label and a single
custom control. The catch is, the single custom control is determined by a
property value. This makes things very complicated, it seems. I'd like to
create the children when the property is set. I'd also like to get the
property's value BEFORE the children are re-created upon post-back. That
way, I know which custom control to create when re-creating.
Any ideas? I'm afraid I've put myself in a bit of a bind by thinking I could
pull this off.
Thank you in advance,
Matt
before and fully understand the "typical" scenarios. However, this one is
far different. I understand that CreateChildControls must create the
controls in exactly the same way as it did before a post-back in order for
everything to "link" back up properly.
However, I have a composite control that creates a single label and a single
custom control. The catch is, the single custom control is determined by a
property value. This makes things very complicated, it seems. I'd like to
create the children when the property is set. I'd also like to get the
property's value BEFORE the children are re-created upon post-back. That
way, I know which custom control to create when re-creating.
Any ideas? I'm afraid I've put myself in a bit of a bind by thinking I could
pull this off.
Thank you in advance,
Matt