Good day,
I'm using the standard code example for the ListBox and I'd like to have sorting. My Master page generates a unique name and adds it to all of the form element names, so the code looks like this:
I'm using the standard code example for the ListBox and I'd like to have sorting. My Master page generates a unique name and adds it to all of the form element names, so the code looks like this:
<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