title: How to get asp generated ID?
body: <p>This code</p>
  
  <pre><code>&lt;asp:CheckBox ID="CheckBox_select" ClientIDMode="Static" type="checkbox" runat="server" /&gt;
  </code></pre>
  
  <p>generate this</p>
  
  <pre><code>&lt;input id="CheckBox_select" type="checkbox" name="ctl00$ContentPlaceHolder1$GridView_reminderList$ctl03$CheckBox_select"&gt;
  </code></pre>
  
  <p>How can I get  ctl00$ContentPlaceHolder1$GridView_reminderList$ctl03$CheckBox_select such that I could use it like</p>
  
  <pre><code>&lt;label for="ctl00$ContentPlaceHolder1$GridView_reminderList$ctl03$CheckBox_select"&gt;&lt;/label&gt;
  </code></pre>
  
  <p>The checkbox is in gridview so I can't access it that easily</p>