One thing that I found is that I needed to add the code to the end of an ascx control, or next to the end of the form tag in an aspx page. NET TECHNOLOGIES: Validator Controls Work With Multiple Validator Controls Learn to set up dependencies between controls, as well as validate those controls. Then you must determine whether the ZIP code is required. He's also author of The Handbook for Reluctant Database Administrators (Apress). Their purpose is to provide an easy and consistent way of validating data in other controls (read Steven Smith's article, "Master ASP. And I can't put a required control on it, because it isn't always required. A: Validator controls come in many different flavors.By Josef Finsel Q: I have a form, with two fields that relate to each other: a radio box for country (U. So you're going to end up with pseudo code that looks like this: IF Country=US AND Zip Code = "" then Valid ELSE Invalid This sounds like just the thing for a Custom Validation control ... That merely gives us an opportunity, however, to make this work better.
But how do you use it to validate multiple controls (for eg: you want to make sure that if the City field has been filled out then you want the State field to also be filled out). Net whenever you use a validation control in your page.
They also have complete client-side implementation that allows DHTML-supported browsers (such as Microsoft Internet Explorer 4.0 or later) to perform validation on the client.
Client-side validation enhances the validation process by checking user input before it is sent to the server.
You can use this method to create complex validations. In this situation, will the validation validate the specific row only ? If you want rows to validate independently then in some cases you may need to use validation groups which is only avaiable in 2.0 (currently in beta) Bottom line it can be done but how to do it depends on the situation. NET 2.0 Next End Sub One option to make the client side code easier to maintain (server side could be improved as well using this technique) would be to use a Css Class to identify the controls involved in the or relationship.
For example, I have a drop down list with various options. The drop down list also includes a blank entry "select option". Daniel Hac: Any chance you could provide a code sample of adding control dynamically in row data bound event? This is readily available through DOM, and by grouping controls by Css Class, when you add a new contact method you only have to tag it with the right Css Class so the client knows.