I’m working on an application that has a large number of inputs for certain types (50 money inputs, 30 date inputs etc).
I have been creating an CompareValidator for each one to make sure users are putting in the correct information but I am curious if there is an easier way to create the validation once and apply it to all desired inputs?
Writing out 80 validators that do basically the same thing seems like a waste. Am I missing something that already does this in .NET or are there anything out there that can make validation easier?
Note: All validation needs to be done on both the client AND server side. I’ve read a little about ASP.NET MVC validation but unfortunately that won’t be an option here.
You might want to give the CustomValidator control a look. According to the MSDN document