摘要: private string DataTableToJson(DataTable dt) { StringBuilder jsonBuilder = new StringBuilder(); jsonBuilder.Append("["); for (int i = 0; i < dt.Rows.Count; i++) { jsonBuilder.Append("{"); for (int j = 0; j < dt.Columns.Count; j++) { jsonBuilder.Append("\""); 阅读全文
posted @ 2011-06-20 09:29 QZB 阅读(403) 评论(0) 推荐(0) 编辑