示例#1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         DataTable yh = PictureBll.yhAll();
         Pic_YH.DataSource = yh;
         Pic_YH.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();
     }
 }