title: Unable to get Control id of sharepoint text box
body: <p>I am trying to get the control id of my grid ... actually its looks like below :</p>
  
  <pre><code>#ctl00_PlaceHolderMain_SPWebPartManager_g_6db898dd_6dee_4b80_913f_b8e92148008e_ctl00_gdvOption
  </code></pre>
  
  <p>But as i am writting a generalised code, i cannot do that above value hardcoded in the code </p>
  
  <p>so i am tryting to do below:</p>
  
  <pre><code>var test1 = '&lt;%= gdvOption1.UniqueID %&gt;';
  </code></pre>
  
  <p>OR</p>
  
  <pre><code>var test2 = '&lt;%= #gdvOption1.ClientID %&gt;';
  </code></pre>
  
  <p>None of them giving the value .</p>
  
  <p>the value of test1 and test2 will exactly what i writtern '&lt;%= #gdvOption1.UniqueID %>';</p>
  
  <p>and '&lt;%= gdvOption1.ClientID %>';  ..respectively ... </p>
  
  <p>Please help me ...</p>
  
  <p>Many thanks in advance</p>