Esempio n. 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 ---", ""));
        }
Esempio n. 2
0
 public void ShowDataInGridView()
 {
     typeNameGridView.DataSource = manager.GetAllTestTypes();
     typeNameGridView.DataBind();
 }