protected void Page_Load(object sender, EventArgs e) { if (Convert.ToString(Session["TenDangNhap"]) == "") { Response.Redirect("~/dangnhap.aspx"); } ctdthiDAL = new clsCauTrucDeThi_DAL(); ctdthiDTO = new clsCauTrucDeThi_DTO(); loaichoiDAL = new clsLoaiCauHoi_DAL(); loaichoiDTO = new clsLoaiCauHoi_DTO(); lbangDAL = new clsLoaiBanglai_DAL(); lbangDTO = new clsLoaiBanglai_DTO(); cmn = new clsCommon(); if (!IsPostBack || !IsCallback) { } if (!Page.IsPostBack) { } loadMasterData(); if (cboLoaiBang.Value != null) { gvCauTrucDeThi.DataSource = loadDataToUI(); gvCauTrucDeThi.DataBind(); } }
protected void Page_Load(object sender, EventArgs e) { if (Convert.ToString(Session["TenDangNhap"]) == "") Response.Redirect("~/dangnhap.aspx"); ctdthiDAL = new clsCauTrucDeThi_DAL(); ctdthiDTO = new clsCauTrucDeThi_DTO(); loaichoiDAL = new clsLoaiCauHoi_DAL(); loaichoiDTO = new clsLoaiCauHoi_DTO(); lbangDAL = new clsLoaiBanglai_DAL(); lbangDTO = new clsLoaiBanglai_DTO(); cmn = new clsCommon(); if (!IsPostBack || !IsCallback) { } if (!Page.IsPostBack) { } loadMasterData(); if (cboLoaiBang.Value != null) { gvCauTrucDeThi.DataSource = loadDataToUI(); gvCauTrucDeThi.DataBind(); } }