摘要:
//DataTable转成Json public static string DataTableToJson(string jsonName, DataTable dt) { StringBuilder Json = new StringBuilder(); Json.Append("{\"" + jsonName + "\":["); if (dt.Rows.Count > 0) { for (int i = 0; i < dt.Rows.Count; i++) { Json.Append("{"); 阅读全文
posted @ 2011-03-23 00:47 且行且思 阅读(1952) 评论(0) 推荐(3) 编辑