Пример #1
0
 public void ProcessRequest(HttpContext context)
 {
     context.Response.ContentType = "text/plain";
     //context.Response.Write("Hello World");
     
     SqlHelp sh = new SqlHelp();
     
     
     context.Response.Write(DataHelp.DataTable2Json((sh.getDataTable())));
     
 }
Пример #2
0
        protected void button1_Click(object sender, EventArgs e)
        {
            DateTime dt = DateTime.Now;

            Response.Write("<script>console.log(\"开始加载时间:'" + dt + "\");</script>");
            SqlHelp sh = new SqlHelp();
            ListHelp lh = new ListHelp();
            lh.ListBindToData(listbox1, sh.getDataTable(), "testId", "testName");
            DateTime dt1 = DateTime.Now;
            Response.Write("<script>console.log(\"结束加载时间:'" + dt1 + "\");</script>");
            Response.Write("<script>console.log(\"加载所用时间:'" + (dt1 - dt) + "\");</script>");
        }