protected void fundNameDropDownList_SelectedIndexChanged(object sender, EventArgs e) { BEFTNDateDropDownList.DataSource = unitRepBLObj.dtBEFTNDateList(fundNameDropDownList.SelectedValue.ToString()); BEFTNDateDropDownList.DataTextField = "NAME"; BEFTNDateDropDownList.DataValueField = "ID"; BEFTNDateDropDownList.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { if (BaseContent.IsSessionExpired()) { Response.Redirect("../Default.aspx"); return; } bcContent = (BaseClass)Session["BCContent"]; userObj.UserID = bcContent.LoginID.ToString(); string fundCode = bcContent.FundCode.ToString(); string branchCode = bcContent.BranchCode.ToString(); //spanFundName.InnerText = opendMFDAO.GetFundName(fundCode.ToString()); if (!IsPostBack) { fundNameDropDownList.DataSource = opendMFDAO.dtFundList(); fundNameDropDownList.DataTextField = "FUND_NM"; fundNameDropDownList.DataValueField = "FUND_CD"; fundNameDropDownList.DataBind(); BEFTNDateDropDownList.DataSource = unitRepBLObj.dtBEFTNDateList("0"); BEFTNDateDropDownList.DataTextField = "NAME"; BEFTNDateDropDownList.DataValueField = "ID"; BEFTNDateDropDownList.DataBind(); } }