if you are trying to return DataTable object from web services, then you cant do that
you need to return dataset from web services then extract datatable from dataset
MIB426:
if you are trying to return DataTable object from web services, then you cant do that
you need to return dataset from web services then extract datatable from dataset
If return dataset successfully, why DataTable is unsuccessful?I think child controls of DataSet will be deserialized also
read here
http://support.microsoft.com/kb/306134/en-us
The JSON serialization of DataTable works because of a custom converter. The Deserialize method of this converter is not implemented. So yes, it is not supposed to work.
But why exactly you need to pass data table to the server? There might be alternatives.
Rama Krishna:
The JSON serialization of DataTable works because of a custom converter. The Deserialize method of this converter is not implemented. So yes, it is not supposed to work.
But why exactly you need to pass data table to the server? There might be alternatives.
I find the other way to pass datatable to the server. I pass the rows to the server,then convert it to the Dictionary<string, object>.
If you have more better way,please tell me!
BTW, Why the deserialize method is not implemented? But it use throw keyword to implemente.
No comments:
Post a Comment