Beispiel #1
0
        private void LoadExchangeType(string path)
        {
            try
            {
                DataTable dt = XMLBo.GetExchangeType(path);
                ddlExchange.DataSource     = dt;
                ddlExchange.DataTextField  = "ExchangeName";
                ddlExchange.DataValueField = "ExchangeCode";
                ddlExchange.DataBind();
                ddlExchange.Items.Insert(0, new ListItem("Select an Exchange", "Select an Exchange"));
            }
            catch (BaseApplicationException Ex)
            {
                throw Ex;
            }

            catch (Exception Ex)
            {
                BaseApplicationException exBase       = new BaseApplicationException(Ex.Message, Ex);
                NameValueCollection      FunctionInfo = new NameValueCollection();
                FunctionInfo.Add("Method", "EquityManualSingleTransaction.ascx:LoadExchangeType()");
                object[] objects = new object[1];
                objects[0]   = path;
                FunctionInfo = exBase.AddObject(FunctionInfo, objects);
                exBase.AdditionalInformation = FunctionInfo;
                ExceptionManager.Publish(exBase);
                throw exBase;
            }
        }