protected void Page_Load(object sender, EventArgs e) { try { if (IsPostBack == false) { XuLy_NhapTP control = new XuLy_NhapTP(); control.LayDHdangXL(); DAO_Entity entities = new DAO_Entity(); gridDSDonHang.DataSource = entities.LayDSDonHangDangXuLy(); gridDSDonHang.DataBind(); } } catch (Exception) { throw; } }
//DSDonHangDangXuLy public void LayDHdangXL() { DAO_Entity dao = new DAO_Entity(); dao.LayDSDonHangDangXuLy(); }