AJAX & ASP.net, Referencing server controls in external file
问题 I've got some JavaScript in an ASP.NET page that looks like this: var list = $get('<%=Topics.ClientID %>'); 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. 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.