示例#1
0
        //绑定壁纸数据源
        protected void bingbz()
        {
            DataTable bz = PictureBll.bzAll();

            if (bz != null)
            {
                Pic_bz.DataSource = bz;
                Pic_bz.DataBind();
            }
        }
示例#2
0
 protected void Button1_Click(object sender, EventArgs e)
 {
     if (DropDownList_Class.SelectedIndex == 0)
     {
         BindView();
     }
     else if (DropDownList_Class.SelectedIndex == 1)
     {
         ListView1.DataSource = PictureBll.bzAll();
         ListView1.DataBind();
     }
     else
     {
         ListView1.DataSource = PictureBll.yhAll();
         ListView1.DataBind();
     }
 }