<script language="javascript" type="text/javascript">
var loadingPanel = "";
var pageRequestManager = Sys.WebForms.PageRequestManager.getInstance();
var postBackElement = "";
pageRequestManager.add_initializeRequest(initializeRequest);
pageRequestManager.add_endRequest(endRequest);
function initializeRequest(sender, eventArgs) {
loadingPanel = $("#<%=LoadingPanel.ClientID%>");
postBackElement = eventArgs.get_postBackElement().id;
loadingPanel.show(postBackElement);
}
function endRequest(sender, eventArgs) {
loadingPanel = $("#<%=LoadingPanel.ClientID%>");
loadingPanel.hide(postBackElement);
}
</script>


<telerik:RadCodeBlock runat="server" ID="RadCodeBlock1">
<script type="text/javascript">
//<![CDATA[
var listBox;
function pageLoad() {
listBox = $find("<%= ctl00$MainContent$SortUC$RadListBox1.ClientID %>");
}
etc...etc
However when I run the code, I'm getting this error:
error CS1056: Unexpected character '$'
and its pointing to the line with the form name. I can find scant little info on the internet about this, so can somone
please tell me how this is supposed to work if it can't handle any non-alphanumerical chars in the string?
Thanks,
Alan R