>So, I don't know if the ASP ListBox works similarly to the WinForm ListBox, but if it does, what you should actually be checking to see if an item was selected in the ListBox is the .SelectedIndex property. It will -1 if nothing has been selected in the ListBox ... you can also set it to -1 initially.
>
>I always say that the controls for ASP and WinForms behave so differently that I shouldn't answer any questions about them at all. But I was halfway through this thread before I realized that you were talking about ASP. <g> So, I may be wrong about a web ListBox ...
>
>~~Bonnie
>
Bonnie,
May I also ask you how to best use the Help from IDE? I do see SelectedIndex property, but when I highlight it in code and press F1 it gives me some unrelated page about using the designer. And therefore so far I was always ending googling for the answer...
If it's not broken, fix it until it is.
My Blog