Example #1
0
        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            string    pageindex = context.Request["pageno"];
            string    orderstr  = "";
            string    wherestr  = "";
            DataTable dt        = CustomerCase.GetPageDataTable(orderstr, wherestr, int.Parse(pageindex), 8, out pagecount, out recordcount);
            string    result    = "";

            result = JsonConvert.SerializeObject(dt, new DataTableConverter());
            result = "{\"dataList\":" + result + ",\"num\":{\"Pagecount\":\"" + pagecount + "\"}}";
            context.Response.Write(result);
            context.Response.End();
        }
Example #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     caseList.DataSource = CustomerCase.GetPageDataTable("", "", 1, 8, out pagecount, out recordcount);
     caseList.DataBind();
 }