Working with DataSet on client
-
VS2008 Can anyone point me in the right direction for working with a DataSet in Javascript/AJAX.NET? I have seen examples that return a DataSet in a WebMethod and work with the tables and rows from the returned result but I get a 'circular reference while deserializing' error message... I want to be able to call a WebMethod asynchronously, return a DataSet and then populate and Infragistics WebGrid with the data. How do I get the data from the DataSet into the client script? Thanks for any help...
-
VS2008 Can anyone point me in the right direction for working with a DataSet in Javascript/AJAX.NET? I have seen examples that return a DataSet in a WebMethod and work with the tables and rows from the returned result but I get a 'circular reference while deserializing' error message... I want to be able to call a WebMethod asynchronously, return a DataSet and then populate and Infragistics WebGrid with the data. How do I get the data from the DataSet into the client script? Thanks for any help...
-
Can you post your code and the line that you are getting the error?
Shhhhh..... http://craptasticnation.blogspot.com/[^]
Thanks for the reply. I have a webmethod server side: <WebMethod> _ Public Shared Function GetDataSet() As DataSet 'Get dataset here... Return ds End Function Client Side: function GetData() { PageMethods.GetDataSet(onSuccess, onFail); } function onSuccess(result) { alert(result.tables[0].rows[0].ColumnName); } function onFail(e) { alert(e.get_message()); } Stepping through, the webmethod runs without error but I get a Deserialization error alert from the onFail function. I have done what the AJAX.NET example I've seen here http://www.ajaxpro.info/Examples/DataSets/default.aspx[^] suggests but I get the above error. Is there something else I need to do, webconfig setting etc?