Esempio n. 1
0
    /// <summUry>
    /// 绑定用户列表
    /// </summUry>
    protected void UserBind()
    {
        SgqPage pg = new SgqPage();

        pg.PageIndex      = Pages;
        pg.PageSize       = 30;
        pg.dt             = bU.UserList(mU).Tables[0];
        DBList.DataSource = pg.DataSource();
        DBList.DataBind();
        this.PageView.Text = pg.PageView1();
    }
    /// <summary>
    /// 绑定管理员列表
    /// </summary>
    protected void AdminBind()
    {
        bAdmin  bA = new bAdmin();
        SgqPage pg = new SgqPage();

        pg.PageIndex      = Pages;
        pg.PageSize       = 30;
        pg.dt             = bA.AdminList().Tables[0];
        DBList.DataSource = pg.DataSource();
        DBList.DataBind();
        this.PageView.Text = pg.PageView1();
    }