Ejemplo n.º 1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["UserID"] == null)
        {
            Session.RemoveAll();
            Response.Redirect("../Default.aspx");
        }

        DataTable PaperNameDropDownList   = dropDownListObj.PaperNameDropDownList();
        DataTable dtSignatoryDropDownList = dropDownListObj.SignatoryDropDownList();
        DataTable dtFundNameDropDownList  = dropDownListObj.CloseEndFundNameDropDownList();

        if (!IsPostBack)
        {
            paperNameDropDownList.DataSource     = PaperNameDropDownList;
            paperNameDropDownList.DataTextField  = "NEWS_PAPER_NAME";
            paperNameDropDownList.DataValueField = "ID";
            paperNameDropDownList.SelectedValue  = "1";
            paperNameDropDownList.DataBind();

            fundNameDropDownList.DataSource     = dtFundNameDropDownList;
            fundNameDropDownList.DataTextField  = "F_NAME";
            fundNameDropDownList.DataValueField = "F_CD";
            fundNameDropDownList.DataBind();

            signatoryDropDownList.DataSource     = dtSignatoryDropDownList;
            signatoryDropDownList.DataTextField  = "NAME";
            signatoryDropDownList.DataValueField = "ID";
            signatoryDropDownList.SelectedValue  = "IAMCL411";
            signatoryDropDownList.DataBind();
        }
    }