public void LoadAllTestTypes() { TestTypeManager testTypeManager = new TestTypeManager(); List <TestType> testTypes = testTypeManager.GetAllTestList(); TestTypeDropDownList.DataSource = testTypes; TestTypeDropDownList.DataTextField = "TestTypeName"; TestTypeDropDownList.DataValueField = "TestTypeId"; TestTypeDropDownList.DataBind(); TestTypeDropDownList.Items.Insert(0, "< Select >"); }
public void LoadAllTestType() { List <TestType> allTestTypes = testSetupManager.GetAllTestType(); TestTypeDropDownList.DataSource = allTestTypes; TestTypeDropDownList.DataTextField = "TestTypeName"; TestTypeDropDownList.DataValueField = "Id"; TestTypeDropDownList.DataBind(); TestTypeDropDownList.Items.Insert(0, "---SELECT---"); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { TestTypeDropDownList.DataSource = aTestTypeManager.GetAllTestTypes(); TestTypeDropDownList.DataTextField = "TypeName"; TestTypeDropDownList.DataValueField = "Id"; TestTypeDropDownList.DataBind(); TestTypeDropDownList.Items.Insert(0, new ListItem("---Select a Test Type---", "0")); } BindDataToGridview(); }
private void ClearScreen() { TestNameTextBox.Text = String.Empty; FeeTextBox.Text = string.Empty; TestTypeDropDownList.ClearSelection(); }