title: Passing Control ID from one Web User Control into another
body: <p>I have a Web User Control that holds many others User Controls. I'd like to name those embedded controls based on the ID of the parent user control.</p>
  
  <p>I'm trying this code inside the main User Control:</p>
  
  <pre><code>&lt;myLibrary:myChildUserControl1 ID="&lt;%=ID%&gt;" runat="server" /&gt;
  </code></pre>
  
  <p>or</p>
  
  <pre><code>&lt;myLibrary:myChildUserControl2 ID="&lt;%=ID%&gt;_OkButton" runat="server" /&gt;
  </code></pre>
  
  <p>In both cases I get a compiler error. </p>
  
  <p>Note that I have no problem assigning the control ID to regular HTML elements. The following code works well:</p>
  
  <pre><code>&lt;div ID="&lt;%=ID%&gt;" &gt;
  </code></pre>
  
  <p>What I am missing?</p>