摘要: 把表里的所有字段都装载到json列表private string GetJson(DataTable dt){ JavaScriptSerializer serializer = new JavaScriptSerializer(); List> rows = new List>(); Dictionary row = null; foreach (DataRow dr in dt.Rows) { row = new Dictionary(); foreach (DataColumn col in dt.Columns) ... 阅读全文
posted @ 2014-01-09 13:39 microsoftzhcn 阅读(258) 评论(0) 推荐(0) 编辑