Often times when mixing jQuery with asp.net I need to use asp .net angle bracket percent, <% %>, syntax within a jQuery selector.
If I would like to separate the Jav
No, you'll need to refactor your JavaScript to accept that information as parameters.
So, instead of
jQuery('#<%=MainPanel.ClientId%>').hide('slow');
do something like this:
function hidePanel(panelId) {
jQuery('#' + panelId).hide('slow');
}
which you can call from your page with
hidePanel('<%=MainPanel.ClientId%>');