ASP.NET VALIDATION (Client verse Server)
Posted on 2004-03-23
I am having some trouble understanding what the ASP.NET validation controls actually do.
Do they validate on the client, the server, or both?
I understand the customvalidator has an event called onServerValidate which can be used to trigger server validation.
But what about the requiredfieldvalidator, rangevalidator, etc, etc. There is a setting that says EnableClientScript. I have set this to false and have mixed results. In some cases the validation doesn't work anymore and in other cases it works fine.
I don't know if I should be creating client and server side validation routines. If so, how do I do both at the same time?