Exemplo n.º 1
0
    protected void Button8_Click(object sender, EventArgs e)
    {
        UserDao userDao = new UserDao();
        NameValueCollection name = new NameValueCollection();
        name.Add("Age", "ASC");
        name.Add("Id", "DESC");

        Hashtable ht = new Hashtable();
        ht.Add("Age>", 12);

        int startIndex = 1;
        int pageSize = 2;
        name = null;
        ht = null;
        IList<User> list = userDao.SelectByPage(startIndex, pageSize, ht, name);
        Response.Write(list.Count + "," + list[0].Id + "," + list[1].Id);
    }