I am using the following code to make a textbox visible if a certain item is
selected from the dropdownlist box. On debug it appears to not even fire the
selected index change module. What is wrong
Private Sub ddlMedicalNecessity_SelectedIndexChanged(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
ddlMedicalNecessity.SelectedIndexChanged
If ddlMedicalNecessity.SelectedValue = "Other (please specify):" Then
txtSpecify.Visible = True
Else
txtSpecify.Visible = False
End If
End Sub
I want the textbox to appear only if other (please specify): is selected. I
have tried taking the value of ddlmedicalnecessity.selectedvalue and put in a
variable and then put the variable in if phrase but that does not work
either. Thank you.