コード例 #1
0
 private void SetDrop()
 {
     Bll.PressTable press = new Bll.PressTable();
     DropDownList1.DataSource     = press.aselect("");
     DropDownList1.DataValueField = "PreName";
     DropDownList1.DataBind();
     Bll.CategoryTable cate = new Bll.CategoryTable();
     DropDownList2.DataSource     = cate.aselect("");
     DropDownList2.DataValueField = "BookCategory";
     DropDownList2.DataBind();
 }
コード例 #2
0
 public SqlDataReader bbbang()
 {
     Bll.CategoryTable cate = new Bll.CategoryTable();
     return(cate.aselect(""));
 }