protected void Page_Load(object sender, EventArgs e)
        {
            dbContext = new QLSinhVienEntities();
            doAction  = string.IsNullOrEmpty(Request["do"]) ? "" : Request["do"].ToLower();
            dapLopHoc = new LopHocDAP(dbContext);
            itemID    = Convert.ToInt32(Request["itemid"]);
            page      = Convert.ToInt32(Request["page"]);
            switch (doAction)
            {
            case "add":
                Add();
                break;

            case "edit":
                Update();
                break;

            case "delete":
                Delete();
                break;

            case "search":
                Search();
                break;

            case "loaddata":
                LoadData();
                break;

            default:
                break;
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            QLSinhVienEntities dbContext  = new QLSinhVienEntities();
            LopHocDAP          dapLopHoc  = new LopHocDAP(dbContext);
            HocSinhDAP         dapHocSinh = new HocSinhDAP(dbContext);

            tbl_LopHocs.AddRange(dapLopHoc.getData());
            tbl_HocSinhs.AddRange(dapHocSinh.getData());
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            QLSinhVienEntities dbContext  = new QLSinhVienEntities();
            HocSinhDAP         dapHocSinh = new HocSinhDAP(dbContext);
            LopHocDAP          dapLopHoc  = new LopHocDAP(dbContext);

            doAction = !string.IsNullOrEmpty(Request["do"]) ? Request["do"].ToString() : "";
            itemID   = !string.IsNullOrEmpty(Request["itemid"]) ? Convert.ToInt32(Request["itemid"]) : 0;
            if (itemID != 0)
            {
                hs = dapHocSinh.getByID(itemID);
            }
            tbl_lopHocs.AddRange(dapLopHoc.getData());
            tbl_HocSinhs.AddRange(dapHocSinh.getData());
        }