void loadDS() { WeeklyReportDAO wrdao = new WeeklyReportDAO(); gvDSWR.DataSource = wrdao.DanhSachWRAll(); gvDSWR.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { if (!this.IsPostBack) { HttpCookie ck = Request.Cookies["MaGDV"]; if (ck == null) { Response.Redirect("~/Pages/Login.aspx"); } else { WeeklyReportDAO wrdao = new WeeklyReportDAO(); gvDSWR.DataSource = wrdao.DanhSachWRAll(); gvDSWR.DataBind(); } } }
void loadSDRWAll() { grDSWeeklyAll.DataSource = wrdao.DanhSachWRAll(); grDSWeeklyAll.DataBind(); }