Im creating a web application with vb.net in asp and i am trying to have a label appear when the first part of the if statement is false. Here is what i have and it doesnt work.
If listbox1.selectedindex = -1 Then
Label.text = "Please select a name in the listbox"
Label.text.visible = True
Else
If listbox1.selectedindex = -1 Then
Label.text = "Please select a name in the listbox"
Label.text.visible = True
Else