文件名称:C# Json转换DataTable源文件
文件大小:6KB
文件格式:RAR
更新时间:2014-09-02 19:06:33
C# Json DataTable 源文件
C#将标准的Json转换DataTable源文件 JSON格式如下:只需要简单传入以下格式字符串,就能轻松生成C#常用DataTable类型数据。主要用于Ajax,客户端DataGrid数据回传处理。 { "total":20, "rows":[ {"code":"001","name":"Name 1","addr":"Address 11","col4":"col4 data"}, {"code":"002","name":"Name 2","addr":"Address 13","col4":"col4 data"}, {"code":"003","name":"Name 3","addr":"Address 87","col4":"col4 data"}, {"code":"004","name":"Name 4","addr":"Address 63","col4":"col4 data"}, {"code":"005","name":"Name 5","addr":"Address 45","col4":"col4 data"}, {"code":"006","name":"Name 6","addr":"Address 16","col4":"col4 data"}, {"code":"007","name":"Name 7","addr":"Address 27","col4":"col4 data"}, {"code":"008","name":"Name 8","addr":"Address 81","col4":"col4 data"}, {"code":"009","name":"Name 9","addr":"Address 69","col4":"col4 data"}, {"code":"010","name":"Name 10","addr":"Address 78","col4":"col4 data"} ] }
【文件预览】:
Test
----App_Code()
--------ToJson.cs(2KB)
----Web.config(8KB)
----Default.aspx(3KB)
----Test.sln(1KB)
----Default.aspx.cs(778B)
----Test.suo(8KB)