private void LoadTG()
        {
            List <TacGia> t = tgbll.DSTacGia();

            grvTacGia.DataSource = t;
            grvTacGia.DataBind();
        }
Example #2
0
        private void LoadDB()
        {
            List <LinhVuc> listlv = lvbll.DSLV();

            LinhVuc.DataSource     = listlv;
            LinhVuc.DataTextField  = "TenLinhVuc";
            LinhVuc.DataValueField = "MaLinhVuc";
            LinhVuc.DataBind();
            List <TheLoai> listtl = tlbll.DSTL();

            TheLoai.DataSource     = listtl;
            TheLoai.DataTextField  = "TenTheLoai";
            TheLoai.DataValueField = "MaTheLoai";
            TheLoai.DataBind();
            List <NgonNgu> listnn = ngvbll.DSNgonNgu();

            NgonNgu.DataSource     = listnn;
            NgonNgu.DataTextField  = "TenNgonNgu";
            NgonNgu.DataValueField = "MaNgonNgu";
            NgonNgu.DataBind();
            List <TacGia> listtg = tgbll.DSTacGia();

            tacgia.DataTextField  = "HoTenTacGia";
            tacgia.DataValueField = "MaTacGia";
            tacgia.DataSource     = listtg;
            tacgia.DataBind();
            List <NhaXuatBan> listnxb = nxbbll.DSNXB();

            NhaXB.DataSource     = listnxb;
            NhaXB.DataTextField  = "TenNXB";
            NhaXB.DataValueField = "MaNXB";
            NhaXB.DataBind();
            List <Sach> mylist = sbll.DSSach();

            grvSach.DataSource = mylist;
            grvSach.DataBind();
        }