Take the 2-minute tour ×  I'm creating composite control, which
has two other components that rely on each other.  In component
A (image), I access component's B (input) UniqueID which equals
I use it in onclick JavaScript code...  But in rendered HTML
input element has following id   So my javascript code ,
generated inside composite control has something like this:
instead of:   Could somebody please explain what is happening,
and how can I reliably associate those two controls ?  Thanks ,
Paweł  share|improve this question You may find this SO thread
useful stackoverflow.com/questions/2500001/… –  Chuck Sep 13 '10
at 17:44 add comment  1 Answer  up vote 4 down vote accepted
You want the ClientID property instead of the UniqueID property.
The reason for this is (sort of) explained on Atanas Korchev's
blog post "The difference between Id, ClientID, and UniqueID".
share|improve this answer add comment  Your Answer