I have a textbox and I do CustomValidation which does client side and server side validations,
how do I fire both client side and server side validations at once? now server side validation fires only after client side validation.
is it possible?
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.
Basically : No, you can rise one after the other if you need but client side validation is there to avoid having to call the server in order to validate. If you need to call the server anyway, why do you bother writing client validation script ?
edit :
If you want the server validation to take place before the form is posted, I suggest you use Ajax to call the server validation routine within you client side validation script. It requires a little trick because Ajax is asynchronous by definition while the client side validation is not. Start here : http://www.codeproject.com/KB/ajax/AjaxValidation.aspx