Esempio n. 1
0
        /// <summary>
        /// Populates the type of the item.
        /// </summary>
        private void PopulateItemType()
        {
            try
            {
                List <ItemType> itemTypes = BillingManager.GetBillingType();


                ddlItemType.DataTextField  = "Name";
                ddlItemType.DataValueField = "Id";
                ddlItemType.DataSource     = itemTypes;
                ddlItemType.DataBind();
                ddlItemType.Items.Insert(0, new ListItem("Select...", "-1"));
            }
            catch (Exception ex)
            {
                this.showErrorMessage(ref ex);
            }
        }