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(); fundCode = bcContent.FundCode.ToString(); branchCode = bcContent.BranchCode.ToString(); // spanFundName.InnerText = opendMFDAO.GetFundName(fundCode.ToString()); FundCodeTextBox.Text = fundCode.ToString(); BranchCodeTextBox.Text = branchCode.ToString(); RegNoTextBox.Focus(); if (!IsPostBack) { LienbankNameDropDownList.DataSource = opendMFDAO.dtFillBankName(); LienbankNameDropDownList.DataTextField = "BANK_NAME"; LienbankNameDropDownList.DataValueField = "BANK_CODE"; LienbankNameDropDownList.DataBind(); SignatoryDropDownList.DataSource = reportObj.dtFillSignatory(); SignatoryDropDownList.DataTextField = "NAME"; SignatoryDropDownList.DataValueField = "ID"; SignatoryDropDownList.DataBind(); } }
protected void Page_Load(object sender, EventArgs e) { UnitHolderRegistration regObj = new UnitHolderRegistration(); if (BaseContent.IsSessionExpired()) { Response.Redirect("../Default.aspx"); return; } bcContent = (BaseClass)Session["BCContent"]; userObj.UserID = bcContent.LoginID.ToString(); // spanFundName.InnerText = opendMFDAO.GetFundName(fundCode.ToString()); // fundCodeTextBox.Text = fundCode.ToString(); // branchCodeTextBox.Text = branchCode.ToString(); 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(); //bankNameDropDownList.DataSource = dtFillBankName(" CATE_CODE=1 "); //bankNameDropDownList.DataTextField = "BANK_NAME"; //bankNameDropDownList.DataValueField = "BANK_CODE"; //bankNameDropDownList.DataBind(); SignatoryDropDownList.DataSource = reportObj.dtFillSignatory(); SignatoryDropDownList.DataTextField = "NAME"; SignatoryDropDownList.DataValueField = "ID"; SignatoryDropDownList.DataBind(); } }