I've used a CustomValidator, and wrote some client side javascript to do
this type of check. That way you will avoid the roundtrip.
You could just as easily forgo the validators, and just write your own
routine for this, but I had some other validators on the page that were
being displayed in a validation summary, so it was more convenient.
"SStory >" <Sh*********@online.msn.com <remove the 'online.' to send me
mail> wrote in message news:eu**************@TK2MSFTNGP11.phx.gbl...
Is there no way to require a checkbox to be checked in ASP.NET?
The requiredvalidator control doesn't work for it--should I make a
server--roundtrip for that and check during the btn_click event? Is there
another way?
Thanks,
Shane