I recently created a .net web app that used over 200 custom validators on one page. I wrote code for both
OnServerValidate which results in a ton of repetitive code.
OnServerValidate and clean after it anyways due to the aforementioned steps.
This makes me question, is
OnServerValidate really needed when I validate on the clientside?
OnServerValidates do simple things like making sure a skip pattern is enforced or that a short appears in a text (which is enforced anyways with my code that pulls data from text fields into parameters i.e. GetShort()). And these are being place in patient surveys, which most of the time are filled out by staff members.
So it seems like if I didn't have the
OnServerValidate for these basic checks and just client side the following situations are:
- A user forces a post. Which if this occurs my
OnServerValidatewould do jack to stop whatever they are trying to do since it is just looking at skip patterns, or would it?
Situation 2 is where I am getting lost. It seems like the user forcing a post is more than likely not to be caught by these simple