protected void LoadPhong(string q) { PHONGBusiness p = new PHONGBusiness(); DataTable dt = p.GetList(); danhsachphongban.DataSource = dt; danhsachphongban.DataBind(); }
protected void Load_Phong() { PHONGBusiness phongs = new PHONGBusiness(); DataTable P = phongs.GetList(); maphong.DataValueField = "phongid"; maphong.DataTextField = "tenphong"; maphong.DataSource = P; maphong.DataBind(); }
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"); }