Teemu is correct about using the RequiredFieldValidator so I'm not sure why
it doesn't work for you. On the server side, the validator gets a text value
of an empty string back from the ListBox control and that validator will
report an error. If you set its Enabled or Visible property to false, it
will stay silent.
You've described shutting of client-side validation to handle multiple
submit buttons. I'm guessing that you have submit buttons associated with
specific validators. Microsoft is introducing a solution for this that
allows client-side validation. Its called "Validation Groups" and is in
ASP.NET 2.0.
Since ASP.NET 2.0 is a long way off, I have a solution that is available
today. My product, "Professional Validation And More"
(
http://www.peterblum.com/vam/home.aspx), is a replacement for Microsoft's
validators that overcomes its many limitations and greatly expands the
features available to validation. For example, it includes "validation
groups" and the RequiredListValidator, which handles your listbox issue by
determining the selected item's index, not the text value. "Professional
Validation And More" is designed to greatly reduce the coding you do now
creating custom validators and hacks to work around Microsoft's validator
limitations.
--- Peter Blum
www.PeterBlum.com
Email: (e-mail address removed)
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx