当前位置:编程学习 > C#/ASP.NET >>

asp.net利用JQuery和Highcharts动态显示曲线怎么从数据库中取数据

public class GetData : IHttpHandler {
    
    public void ProcessRequest (HttpContext context) {
        context.Response.ContentType = "text/plain";
        int[] num = new int[10] { 2, 12, 1, 45, 12, 78, 34, 15, 56, 97 };
        int[] num1 = new int[10] { 2, 12, 1, 45, 12, 78, 34, 15, 56, 97 };
        int[] num2 = new int[10] { 34, 67, 1, 76, 1, 2, 12, 19, 23, 21 };
        int[] num3 = new int[10] { 2, 12, 39, 40, 17, 98, 23, 29, 36, 1 };
        int[] num4 = new int[10] { 14, 45, 6, 78, 98, 89, 3, 67, 45, 15 };
        int[] num5 = new int[10] { 12, 2, 33, 3, 12, 67, 4, 43, 87, 5 };
        int[] num6 = new int[10] { 33, 3, 43, 89, 34, 54, 12, 2, 56, 4 };
        int[] num7 = new int[10] { 65, 45, 12, 33, 12, 34, 35, 1, 34, 33 };
        object[] nums2 = new object[8] { num, num1, num2, num3, num4, num5, num6, num7 };

        JavaScriptSerializer jss = new JavaScriptSerializer();
        string json = jss.Serialize(nums2);
        context.Response.Write(json);  
        
    }
这是我造的假数据已经实现、可以显示,但是我还没有从数据库中取到数据,怎么从数据库中取数据??? asp.net jquery json 数据库 object --------------------编程问答-------------------- http://blog.csdn.net/nuaazdh/article/details/6754928
补充:.NET技术 ,  ASP.NET
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,