using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace WebForm
{
///
/// Test1 的摘要说明
///
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("
| " + user["Title"] + " | " + user["Type"] + " | " + user["UserName"] + " | " + user["WriteTime"] + " |
");
}
context.Response.Write("{\"count\":" + new RoadFlow.Platform.Log().GetCount() + ",\"data\":\"" + sb.ToString() + "\"}");
}
public bool IsReusable
{
get
{
return false;
}
}
}
}