关闭

JQgrid使用

165人阅读 评论(0) 收藏 举报
 public string GetData(string pageIndex,string rows)
        {
            Customer customer = new Customer();
            customer.id = 1;
            customer.CustomerName = "张三";
            customer.Age = 20;
            customer.Sex = "男";
            List<Customer> list = new List<Customer>();
            list.Add(customer);
            Customer c = new Customer();
            c.id = 2;
            c.CustomerName = "李四";
            c.Age = 25;
            c.Sex = "女";
            list.Add(c);
            //JavaScriptSerializer serialize = new JavaScriptSerializer();
            string result = JsonHanlder.GetJson(list, 3, Convert.ToInt32(rows), Convert.ToInt32(pageIndex));
            return result;
        }
0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:105448次
    • 积分:1934
    • 等级:
    • 排名:千里之外
    • 原创:99篇
    • 转载:0篇
    • 译文:0篇
    • 评论:17条
    最新评论