Hi
I have an autocomplete Extender on a text that calls a web services to load the drop down list.
This works fine, but i need to get the actual Record ID associated with the selected text. I have changed my web service to pass back the record ID with the  text and this works fine.Â
The problem I having is with the Javascript to pull the selected record ID into a hidden field. Most of the examples on the web have the following code which is linked into the autocompletextender via the onclientitemselected event.
<script type = "text/javascript">
   function ClientItemSelected(sender, e) {
     $get("<%=hfCustomerId.ClientID %>").value = e.get_value();
   }
</script>
 I'm using the following code to register the Above script within MP:
 string initScript = @"function ClientItemSelected(sender, e ) { $get(""<%=hfCustomerId.ClientID %>"").value = e.get_value(); }";
        Page.ClientScript.RegisterStartupScript(typeof(Page),
        "idDropDown", "\n<script type=\"text/javascript\" >"
        + initScript + "</script>");
the following is the code via 'view source' :
<script type="text/javascript" >function ClientItemSelected(sender, e ) {Â $get("<%=hfCustomerId.ClientID %>").value = e.get_value();Â }</script>
Basically I get the following error when i select a record in the autocomplete extender drop down. "Microsoft JScipt runtime error : Syntax error , unrecognized Expression : > " in the jquery.min.js (dynamic) file
sorry i'm not a Javascript developer :(
Can anyone help ?
Thanks
LeeB
Â
Â
Â