So here's the scenario. I have a signup form that has a field "email address". I have a web.config switch "requireEmailSignup" that is either true or false. If the switch is true, I want to have client side and server side validation requiring the field to be there. If its false, then I don't want this validation. What's the best practice for doing something like this? Can I use the asp.net requiredfieldvalidator? I'm guessing I'll have to dynamically add the requiredfieldvalidator control in PageInit()?
