// load danh muc tim kiem private void dannhmuc() { danhmucBLL bs = new danhmucBLL(); IList <danhmucDAL> list = bs.getDanhMucTimKiem(); search_se.Items.Add("Tất cả"); for (int i = 0; i <= list.Count - 1; i++) { search_se.Items.Add(list[i].ten_danhmuc); } }
// load danh muc san pham() private void loaddanhmuc() { danhmucBLL bs = new danhmucBLL(); List <danhmucDAL> list = bs.getDanhMucTimKiem(); ddlTimKiem.Items.Add("Tất cả"); ddlView.Items.Add("Tất cả"); for (int i = 0; i <= list.Count - 1; i++) { ddlTimKiem.Items.Add(list[i].ten_danhmuc); ddlView.Items.Add(list[i].ten_danhmuc); } }