title: ClientID inside of ASCX file
body: <p>I am trying to get CLientID inside the  .ascx (user control mark-up) file.</p>
  
  <p>While this </p>
  
  <pre><code>My id is: &lt;%=this.ClientID%&gt;
  </code></pre>
  
  <p>renders as
  My id is: fracTemplateCtrl </p>
  
  <p>This:</p>
  
  <pre><code>        &lt;asp:Button ID="btnSave" runat="server" Text="Save Template" onclick="btnSave_Click" OnClientClick="return confirmSave('&lt;%=this.ClientID%&gt;');" /&gt;
  </code></pre>
  
  <p>renders as (inside Source code):</p>
  
  <pre><code>        &lt;input type="submit" name="fracTemplateCtrl$btnSave" value="Save Template" onclick="return confirmSave('&amp;lt;%=this.ClientID%&gt;');" id="fracTemplateCtrl_btnSave" /&gt;
  </code></pre>
  
  <p>Clearly, ClientId property does not get evaluated in the second case. How do I overcome this issue? (aside from hardcoding, which is not the answer, I would like to make the user control independent) </p>