Group validators in ASP.NET on client side – finally!
Jun 19th, 2005 by Sebastian
Finally that time came. Time to face with the lack of group validators problem. I had two choices: loop up a solution for that in the Internet or fix it on my own.
I decided that first I will try to find something on the Internet. Maximum time for that is 20 minutes, after that I’m fixing it on my own.
After about 5 minutes I have found a fix for that.
I found it on ASP.NET forums. It’s a post by jgallant (Joe Gallant I presume)
http://forums.asp.net/296304/ShowPost.aspx Check out Joe’s post on how to implement it.
I found that the posted WebUIValidation.js file didn’t worked for me, so I fixed it.
Plus I added a little patch that when a button doesn’t have assigned validator it validates all (before JavaScript error showed up)
You can view and download my version of this file WebUIValidation.js.txt (look out for the txt extension).
Big thanks Joe for posting this and for a detailed explanation.