Beispiel #1
0
        private void PopulateInvestigations()
        {
            DropInvestigations.Items.Clear();
            var table = _dal.GetInvestigations();

            DropInvestigations.DataSource     = table;
            DropInvestigations.DataTextField  = table.investigation_titleColumn.ColumnName;
            DropInvestigations.DataValueField = table.investigation_idColumn.ColumnName;
            DropInvestigations.DataBind();
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (IsPostBack)
            {
                return;
            }
            var dal   = new InvestigationManager();
            var table = dal.GetInvestigations();

            DropInvestigations.DataSource     = table;
            DropInvestigations.DataTextField  = table.investigation_titleColumn.ColumnName;
            DropInvestigations.DataValueField = table.investigation_idColumn.ColumnName;
            DropInvestigations.DataBind();
        }
        private void PopulateInvestigations()
        {
            DropInvestigations.Items.Clear();
            var table = _dal.GetInvestigations();

            if (table.FindByinvestigation_id(0) == null)
            {
                table.AddinvestigationRow(0, "(all)");
            }
            DropInvestigations.DataSource     = table;
            DropInvestigations.DataTextField  = table.investigation_titleColumn.ColumnName;
            DropInvestigations.DataValueField = table.investigation_idColumn.ColumnName;
            DropInvestigations.DataBind();
            DropInvestigations.SelectedValue = "0";
        }