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();
        }
Esempio n. 3
0
        protected void them_Click(object sender, EventArgs e)
        {
            PHONG po = new PHONG();

            po.maphong   = maphong.Text;
            po.tenphong  = tenphong.Text;
            po.Dienthoai = dienthoai.Text;
            PHONGBusiness bP = new PHONGBusiness();

            bP.Insert(po);
            LoadPhong("Q");
        }