Exemplo n.º 1
0
        private void BindCommission()
        {
            var commissions = BsoArchiveEntities.Current.CommissionTypes.Where(pt => pt.CommissionTypeID >= 0);

            WorkCommissions.DataSource = commissions.ToList();
            WorkCommissions.DataBind();
            WorkCommissions.Items.Insert(0, new ListItem("Select All", ""));
        }
Exemplo n.º 2
0
        private void BindDropdownLists()
        {
            var premieres = BsoArchiveEntities.Current.PremiereTypes.Where(pt => pt.PremiereTypeID >= 0);

            WorkPremiere.DataSource = premieres.ToList();
            WorkPremiere.DataBind();
            WorkPremiere.Items.Insert(0, new ListItem("Select All", ""));

            var commissions = BsoArchiveEntities.Current.CommissionTypes.Where(pt => pt.CommissionTypeID >= 0);

            WorkCommissions.DataSource = commissions.ToList();
            WorkCommissions.DataBind();
            WorkCommissions.Items.Insert(0, new ListItem("Select All", ""));
        }