asp.net学习_分页的设计(13)
来源:未知 责任编辑:责任编辑 发表时间:2014-04-20 03:40 点击:次
8: /// <returns>返回json数据</returns>
9: public static string MiniUiListToJson(IEnumerable<master> masterInfo, int total, string paramMaxMinAvg)
10: {
11: StringBuilder Json = new StringBuilder();
12: Json.Append("{\"total\":"+total+",\"data\":");
13: Json.Append("[");
14: foreach (master Info in masterInfo)
15: {
16: Json.Append("{");
17: Json.Append("\"Id\":\"" + Info.Id + "\"");
18: Json.Append(",");
19: Json.Append("\"Username\":\"" + Info.Username + "\"");
20: Json.Append(",");
21: Json.Append("\"Password\":\"" + Info.Password + "\"");
22: Json.Append(",");
23: Json.Append("\"Name\":\"" + Info.Name + "\"");
24: Json.Append(",");
25: Json.Append("\"Introduction\":\"" + Info.Introduction + "\"");
相关新闻>>
最新推荐更多>>>
- 发表评论
-
- 最新评论 更多>>