I have the following JavaScript code that creates a really simple JSON object...
This generates the following JSON string after running the object through the stringify method...
{"MyID":1,"MyItem":"This is the first item"}
This is valid JSON according to JSONLint.com.
Calling the .ajaxRequest() method results in Sys.WebForms.PageRequestManagerServerErrorException - "Specified cast is not valid"
It's not even getting to my RadAjaxManager1_AjaxRequest() event handler where I have a breakpoint set to inspect the value of e.argument.
What's wrong here?
I'm using version 2010.3.1317.35 of the Telerik controls.
Rob
var data = {'MyID':1,'MyItem':'This is the first item'};
var JSONdata = JSON.stringify(data);
$find('<%= RadAjaxManager1.ClientID %>').ajaxRequest(JSONdata);
This generates the following JSON string after running the object through the stringify method...
{"MyID":1,"MyItem":"This is the first item"}
This is valid JSON according to JSONLint.com.
It's not even getting to my RadAjaxManager1_AjaxRequest() event handler where I have a breakpoint set to inspect the value of e.argument.
What's wrong here?
I'm using version 2010.3.1317.35 of the Telerik controls.
Rob