protected void selectTestDropDownList_SelectedIndexChanged(object sender, EventArgs e) { if (selectTestDropDownList.SelectedIndex == 0) { feeTextBox.Text = string.Empty; } else { int testId = Convert.ToInt32(selectTestDropDownList.SelectedValue.ToString()); ViewState["testId"] = testId; TestSetupEntry test = testSetupManager.GetAllTestById(testId); feeTextBox.Text = test.TestFee.ToString(); } }
protected void testDropDown_SelectedIndexChanged(object sender, EventArgs e) { if (testDropDown.SelectedIndex == 0) { feeLabel.Text = string.Empty; } else { int testId = Convert.ToInt32(testDropDown.SelectedValue.ToString()); ViewState["Tests"] = testId; TestSetup testSetup = testSetupManager.GetAllTestById(testId); feeLabel.Text = testSetup.Fee.ToString(); } }