//将datatable转换为json
摘要:
//将datatable转换为jsonpublic string DtToJson(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 @ 2012-02-25 01:25 JQuery-Ch 阅读(170) 评论(0) 推荐(0) 编辑