title: AJAX & ASP.net, Referencing server controls in external file
body: <p>I've got some JavaScript in an ASP.NET page that looks like this:</p>
  
  <pre><code>var list = $get('&lt;%=Topics.ClientID %&gt;');
  </code></pre>
  
  <p>I have many functions written now where this syntax is used, and I would like to centralize my JavaScript and move this into an external JavaScript file.  This breaks however, since 'Topics' cannot be found.</p>
  
  <p>What is the best strategy for getting this to work?  I assume I should pass the control/control information as a parameter to the function, but I can't seem to get the syntax to work.  Any suggestions?</p>