Can someone please tell me how does client side regular expressions validation differ from the regex checking done on the server?
Any references to asp.net validation control shall be appreciated.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In asp.net, RegularExpressionValidator control can perform both client-side and server-side validation.
Otherwise, JavaScript RegExp object will be used to perform client side validation, while .NET Regular Expression Object Model will do the work server side.
In general, if client scripting is disabled, client-side validation will not run.
In this case, server-side validation is required. Unobtrusive JavaScript should grant a graceful degradation of the functionalities depending on the client scripting capabilities.