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 ddlMedicalNeces sity_SelectedIn dexChanged(ByVa l sender As
System.Object, ByVal e As System.EventArg s) Handles
ddlMedicalNeces sity.SelectedIn dexChanged
If ddlMedicalNeces sity.SelectedVa lue = "Other (please specify):" Then
txtSpecify.Visi ble = True
Else
txtSpecify.Visi ble = 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 ddlmedicalneces sity.selectedva lue and put in a
variable and then put the variable in if phrase but that does not work
either. Thank you.
selected from the dropdownlist box. On debug it appears to not even fire the
selected index change module. What is wrong
Private Sub ddlMedicalNeces sity_SelectedIn dexChanged(ByVa l sender As
System.Object, ByVal e As System.EventArg s) Handles
ddlMedicalNeces sity.SelectedIn dexChanged
If ddlMedicalNeces sity.SelectedVa lue = "Other (please specify):" Then
txtSpecify.Visi ble = True
Else
txtSpecify.Visi ble = 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 ddlmedicalneces sity.selectedva lue and put in a
variable and then put the variable in if phrase but that does not work
either. Thank you.
Comment