コード例 #1
0
        void loadDS()
        {
            WeeklyReportDAO wrdao = new WeeklyReportDAO();

            gvDSWR.DataSource = wrdao.DanhSachWRAll();
            gvDSWR.DataBind();
        }
コード例 #2
0
 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();
         }
     }
 }
コード例 #3
0
 void loadSDRWAll()
 {
     grDSWeeklyAll.DataSource = wrdao.DanhSachWRAll();
     grDSWeeklyAll.DataBind();
 }