Пример #1
0
        protected void PopulateSavedDraftsDropDown()
        {
            StoredProcedures sp = new StoredProcedures();
            DataSet ds = sp.GetStoredDrafts();

            DraftDropDownList.DataSource = ds;
            DraftDropDownList.DataTextField = ds.Tables[0].Columns[1].ToString();
            DraftDropDownList.DataValueField = ds.Tables[0].Columns[0].ToString();
            DraftDropDownList.DataBind();

            DraftDropDownList.Items.Insert(0, new ListItem("--- Select Model Data Draft ---", "0"));
        }