asp.net DataTable和Dataset序列化成Json格式

DataTableToJson:

调用的话:Dictionary<string, object> dt = Resolve.DataRowFromJSON(requestbuffer, context);


DatasetToJson:

调用的话:JavaScriptConvert.SerializeObject(GetTestDataSet(), new DataSetConverter());


DataTableToJson2:

调用的话:JavaScriptConvert.SerializeObject(GetTestDataTable(), new DataTableConverter());


posted @ 2011-12-23 10:19  javawebsoa  Views(346)  Comments(0Edit  收藏  举报