UniqueID vs html element actual id
<p>I'm creating composite control, which has two other components that rely on each other.</p>

<p>In component A (image), I access component's B (input) UniqueID which equals </p>

<pre><code>MyTextBox1$BoldTextBox
</code></pre>

<p>I use it in onclick JavaScript code...</p>

<p>But in rendered HTML input element has following id</p>

<pre><code>MyTextBox1_BoldTextBox
</code></pre>

<p>So my javascript code , generated inside composite control has something like this:</p>

<pre><code>onclick=$('#MyTextBox1$BoldTextBox').....
</code></pre>

<p>instead of:</p>

<pre><code>onclick=$('#MyTextBox1_BoldTextBox').....
</code></pre>

<p>Could somebody please explain what is happening, and how can I reliably associate those two controls ?</p>

<p>Thanks , Paweł</p>
