I have the following textbox server control in my web page:
I solved the same problem with an
When using <%= TargetControl.ClientID %> (without single quotes surrounding), ASP.NET renders '<%= TargetControl.ClientID %>' and the associated javascript function isn´t called.
When using '<%= TargetControl.ClientID %>' (with sigle quotes surrounding), ASP.NET don´t evaluates the expression and renders exactly the same inside the single quotes.
So I decide to try with an Input(Checkbox) HTLM control instead, using the following markup
and it worked!!!
Hope it helps.