Is there any equivalent to this when a combo is data bound? I’ve been through this hundreds of times before, but I’m having a brain freeze moment.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In asp.net the closest you could get is to add in a false item such as ‘—Select Something—‘ and have it as index 0, then you would set and perform checks on index 0 instead of -1.
Example:
Then during your validation you could make sure to check to make sure
selectedindex <> 0