Author: Dovdimus Prime | Posted on: 6/5/2009 9:10:34 AM | Views : 563

Hi there
I have a server control with a property (attribute) which I need to specify declaratively like this:
<blah:MyControl runat="server" MyProperty="something"/>
However, that attribute value needs to contain the ClientId of another control. I can't use this kind of syntax:
<blah:MyControl runat="server" MyProperty="<%=someothercontrol.ClientId %"/>
Because of the limitation of doing that within server control.
Is there ANY other way I can do this? I really don't want to have to declare the property programmatically.
Thanks
David

...

Go to the complete details ...