コード例 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                HttpSessionState state = HttpContext.Current.Session;

                myHKeInvestCode.getCurrency(state);
                // Get the available currencies to populate the DropDownList.
                DataTable dtCurrency = (System.Data.DataTable)state["currencies"];
                foreach (DataRow row in dtCurrency.Rows)
                {
                    ddlCurrency.Items.Add(row["currency"].ToString().Trim());
                }
            }
        }