emvanlill Posted July 13, 2003 Posted July 13, 2003 Hi. I'm confused again. With this new validation controls from ASP.Net, is it not better to do your form validation on the Client-side with some script? Can you accually do form validaton with a client-side script on ASP.Net controls, because if you do put an event on a ASP.Net control it will go to a VB runat = server routine? Hope you understand this question. Cheers!!! Quote
*Experts* mutant Posted July 13, 2003 *Experts* Posted July 13, 2003 Actually the validation controls like RequiredFieldValidator attempt to do the client side validation first, then if the browser doesnt support JavaScript or cant do it then the validation goes server side. Put a RequiredFIeldValidation on your form and run it with a button. You will see that the error message pops up without any loading. (If you use IE, if you use any browser that doesnt support it it will be server side) Quote
WebJumper Posted July 13, 2003 Posted July 13, 2003 Remember: Validators are buggy in .net! Try to compare TextBoxes in password mode, compare "" (empty string) with "xxx" and you get no error message... Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.