title: How to use JavaScript strings to create a '<%= ...ClientID %>' dynamically?
body: <p>Hi I trying to write a javascript generate <code>&lt;%= element.ClientID% &gt;</code> where element is one of the input parameter of function. I am trying to write a variable </p>
  
  <pre><code>var elementName = "&lt;%=" + element + ".clientID%&gt;" 
  </code></pre>
  
  <p>which is giving an error </p>
  
  <blockquote>
    <p>CS0117: 'string' does not contain a
    definition for 'clientID'</p>
  </blockquote>