Exemple #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["UserID"] == null)
        {
            Response.Redirect("../Default.aspx");
        }
        if (!IsPostBack)
        {
            fundNameDropDownList.DataSource     = opendMFDAO.dtFundList();
            fundNameDropDownList.DataTextField  = "FUND_NM";
            fundNameDropDownList.DataValueField = "FUND_CD";
            fundNameDropDownList.DataBind();

            branchNameDropDownList.DataSource     = opendMFDAO.dtBranchList();
            branchNameDropDownList.DataTextField  = "BR_NM";
            branchNameDropDownList.DataValueField = "BR_CD";
            branchNameDropDownList.DataBind();

            menuCheckBoxList.DataSource     = opendMFDAO.getDtMenuList();
            menuCheckBoxList.DataTextField  = "M_NAME";
            menuCheckBoxList.DataValueField = "M_ID";
            menuCheckBoxList.DataBind();

            fundCheckBoxList.DataSource     = opendMFDAO.getFundForMenu();
            fundCheckBoxList.DataTextField  = "FUND_NM";
            fundCheckBoxList.DataValueField = "FUND_CD";
            fundCheckBoxList.DataBind();

            branchCheckBoxList.DataSource     = opendMFDAO.getBranchForMenu();
            branchCheckBoxList.DataTextField  = "BR_NM";
            branchCheckBoxList.DataValueField = "BR_CD";
            branchCheckBoxList.DataBind();
        }
    }