I have a dropdown that displays nothing. If I hit the save button and nothing is displayed I want an error message stating something has to be selected
I've tried if ddl.POApprover.text = "" then display the message but that doesn't display
If ddlPOApprover.Text = "" And (Session("UserGroup") = 13) Then
MsgBox("Error: An Approver must be provided before you can save")
blnValidation = False
End If
I want the error to come up when I hit save but it doesn't
Sessionin there. Does that mean it's an ASP.NET program? If so, the message box will appear on the server, which is probably not what you intended.Option Strict Onand correct the problems it points out for you.