title: How to pass Control.ClientID in function in repeater ItemDataBound in aspx page?
body: <p>I want to call a JavaScript function to collapse/expand.</p>
  
  <p>I am using this code in asp:repeater <code>ItemTemplate</code> on span </p>
  
  <pre><code>onclick="javascript:funCollExp(this,'&lt;%= P1.ClientID %&gt;');"
  </code></pre>
  
  <p>How do I pass <code>Control.ClientID</code>?</p>
  
  <p>It replaces P1.ClientID as a string on the page.</p>