Example #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Convert.ToString(Session["TenDangNhap"]) == "")
        {
            Response.Redirect("~/dangnhap.aspx");
        }
        dotthiDAL = new clsDotThi_DAL();
        dotthiDTO = new clsDotThi_DTO();

        lblDAL = new clsLoaiBanglai_DAL();

        cmn = new clsCommon();
        if (!IsPostBack || !IsCallback)
        {
        }
        if (!Page.IsPostBack)
        {
        }
        loadMasterData();
        if (cboLoaiBang.Value != null)
        {
            dotthiDTO.MaLoaiBang = cboLoaiBang.Value.ToString();
            gvDotThi.DataSource  = loadDataToUI(dotthiDTO);
            gvDotThi.DataBind();
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Convert.ToString(Session["TenDangNhap"]) == "")
        {
            Response.Redirect("~/dangnhap.aspx");
        }
        choilbangDAL = new clsCauHoi_LoaiBang_DAL();
        choilbangDTO = new clsCauHoi_LoaiBang_DTO();

        lbangDAL = new clsLoaiBanglai_DAL();
        lbangDTO = new clsLoaiBanglai_DTO();

        choiDAL = new clsCauHoi_DAL();
        choiDTO = new clsCauHoi_DTO();


        cmn = new clsCommon();
        if (!IsPostBack || !IsCallback)
        {
        }
        if (!Page.IsPostBack)
        {
        }
        loadMasterData();

        if (cboLoaiBang.Value != null)
        {
            gvCauHoiLoaiBang.DataSource = loadDataToUI();
            gvCauHoiLoaiBang.DataBind();
        }
    }
Example #3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Convert.ToString(Session["TenDangNhap"]) == "")
     {
         Response.Redirect("~/dangnhap.aspx");
     }
     lbangDAL = new clsLoaiBanglai_DAL();
     lbangDTO = new clsLoaiBanglai_DTO();
     cmn      = new clsCommon();
     gvLoaiBang.DataSource = loadDataToUI();
     gvLoaiBang.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();
        }
    }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Convert.ToString(Session["TenDangNhap"]) == "")
         Response.Redirect("~/dangnhap.aspx");
     lbangDAL = new clsLoaiBanglai_DAL();
     lbangDTO = new clsLoaiBanglai_DTO();
     cmn = new clsCommon();
     gvLoaiBang.DataSource = loadDataToUI();
     gvLoaiBang.DataBind();
 }