Esempio n. 1
0
        protected void LoadPhong(string q)
        {
            PHONGBusiness p  = new PHONGBusiness();
            DataTable     dt = p.GetList();

            danhsachphongban.DataSource = dt;
            danhsachphongban.DataBind();
        }
Esempio n. 2
0
        protected void Load_Phong()
        {
            PHONGBusiness phongs = new PHONGBusiness();
            DataTable     P      = phongs.GetList();

            maphong.DataValueField = "phongid";
            maphong.DataTextField  = "tenphong";
            maphong.DataSource     = P;
            maphong.DataBind();
        }