If the user selects 'other' at runtime I would like a text box to appear that they can type a new item into (the item doesnt have to be added to the list. I just want the new text box to appear)
I thought using the selectedindexchanged command for the drop down list would make this work.
I tried using the following code:
Protected Sub DropDownListIngredients_SelectedIndexChanged(sender As Object, e As System.EventArgs) Handles DropDownListIngredients.SelectedIndexChanged If DropDownListIngredients.SelectedValue = "other" Then txtOther.visible = true End If End Sub
I have had no luck with the above code. Could anyone shed some light on how the above could be achieved in vb.net?
Any help would be appreciated.