Example #1
0
        public void LoadTestDropDown()
        {
            TypeNameManager manager1 = new TypeNameManager();

            testTypeDropDownList.DataSource     = manager1.GetAllTestTypes();
            testTypeDropDownList.DataTextField  = "TypeName";
            testTypeDropDownList.DataValueField = "Id";
            testTypeDropDownList.DataBind();
            testTypeDropDownList.Items.Insert(0, new ListItem("--- Please Select ---", ""));
        }