| 12345678910111213141516171819202122232425262728293031323334353637 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Web;
- namespace WebForm
- {
- /// <summary>
- /// Test1 的摘要说明
- /// </summary>
- public class Test1 : IHttpHandler
- {
- public void ProcessRequest(HttpContext context)
- {
- context.Response.ContentType = "text/plain";
- string title = context.Request.QueryString["title"];
- string page;
- System.Data.DataTable dt = new RoadFlow.Platform.Log().GetPagerData(out page, "", title, "", "", "", "");
- System.Text.StringBuilder sb = new System.Text.StringBuilder();
-
- foreach (System.Data.DataRow user in dt.Rows)
- {
- sb.Append("<tr><td value='" + user["ID"] + "'>" + user["Title"] + "</td><td>" + user["Type"] + "</td><td>" + user["UserName"] + "</td><td>" + user["WriteTime"] + "</td></tr>");
- }
- context.Response.Write("{\"count\":" + new RoadFlow.Platform.Log().GetCount() + ",\"data\":\"" + sb.ToString() + "\"}");
- }
- public bool IsReusable
- {
- get
- {
- return false;
- }
- }
- }
- }
|