public void Bind(int intPID)
    {
        SqlDataAdapter da;

        switch (intPID)
        {
        case -1:
            da = items.GetItemByAllWithALLImg2(3);
            break;

        default:
            da = items.GetItemAllWithALLImgByPID2(intPID, 3);
            break;
        }
        DataSet ds = new DataSet();

        da.Fill(ds, "ItemsList");

        PagedDataSource ps = new PagedDataSource();        //生成PagedDataSource的实例

        ps.DataSource         = ds.Tables[0].DefaultView;
        ps.AllowPaging        = true;                                  //启用分页
        ps.PageSize           = 9;                                     //当页显示的项数
        this.lbpageCount.Text = ps.PageCount.ToString();               //总页数

        ps.CurrentPageIndex = Convert.ToInt32(lbcurrentPage.Text) - 1; //获取当前页的页码

        if (ps.IsFirstPage)                                            //第一页
        {
            this.lbFirst.Enabled = false;                              //不显示第一页按钮
            this.lbPrev.Enabled  = false;                              //不显示上一页按钮
        }
        else
        {
            this.lbFirst.Enabled = true;
            this.lbPrev.Enabled  = true;
        }
        if (ps.IsLastPage)               //最后一页
        {
            this.lbNext.Enabled = false; //不显示下一页按钮
            this.lbLast.Enabled = false; //不显示末页按钮
        }
        else
        {
            this.lbNext.Enabled = true;
            this.lbLast.Enabled = true;
        }

        //设置数据源的关键字段
        //this.ddlWomen.DataKeyField = "AID";
        this.ddlWomen.DataSource = ps;
        //if (int.Parse(lbpageCount.Text) == 0) { ddlWomen.FindControl(); }
        this.ddlWomen.DataBind();
    }