Validation Framework - Part One
Our previous project was a web application with high security requirements.So we decided to use validations to validate the input and prevent user from entering harmful data or data that could make an application behave unexpectedly.We choose to use both client and server side validations on our pages because there was a possibilty of user disabling javascript on the browser and hence bypassing client side validations.Hence Regular ASP.NET validation controls were used and we had Required Field Validators, Regex Validators, Range Validators and Custom Validators across our pages.We set the EnableClientSide property of the validators to true to make sure client side validations fire.Once client side validations passed, on every postback event we were again checking for Page.IsValid property before proceeding to our event handling code.Now to evaluate Page.IsValid property, ASP.NET fires all validations again on the server side as well. Well, the project is over and working fine.I mov