protected void Page_Load(object sender, EventArgs e) { if (Convert.ToString(Session["TenDangNhap"]) == "") { Response.Redirect("~/dangnhap.aspx"); } cathiDAL = new clsCaThi_DAL(); cathiDTO = new clsCaThi_DTO(); dotthiDAL = new clsDotThi_DAL(); dotthiDTO = new clsDotThi_DTO(); cmn = new clsCommon(); if (!IsPostBack || !IsCallback) { } if (!Page.IsPostBack) { } loadMasterData(); if (cboDotThi.Value != null) { cathiDTO = new clsCaThi_DTO(); cathiDTO.MaDotThi = cboDotThi.Value.ToString(); gvCaThi.DataSource = loadDataToUI(cathiDTO); gvCaThi.DataBind(); } }
protected void Page_Load(object sender, EventArgs e) { if (Convert.ToString(Session["TenDangNhap"]) == "") Response.Redirect("~/dangnhap.aspx"); cathiDAL = new clsCaThi_DAL(); cathiDTO = new clsCaThi_DTO(); dotthiDAL = new clsDotThi_DAL(); dotthiDTO = new clsDotThi_DTO(); cmn = new clsCommon(); if (!IsPostBack || !IsCallback) { } if (!Page.IsPostBack) { } loadMasterData(); if (cboDotThi.Value != null) { cathiDTO = new clsCaThi_DTO(); cathiDTO.MaDotThi = cboDotThi.Value.ToString(); gvCaThi.DataSource = loadDataToUI(cathiDTO); gvCaThi.DataBind(); } }