Net validating checkbox alan rickman emma watson dating
I sent the textbox as the control to validate, and then got the ID of my "real" control to validate from the value that was sent to the validation function, and used it to find my checkbox list and perform the validation checks. The problem was that I needed a way to know which control to validate. Error Message = "You must select at least one value! Server Validate = new Server Validate Event Handler(Validate Checkbox); val Check. These checkbox lists are created dynamically at runtime. Add(txt Dummy); // add custom validation control Custom Validator val Check = new Custom Validator(); val Check. It turned out that the validation does not work for Checkbox List.I found the following article about it: claims that there are 3 possible solutions: implement the validation not using the validation controls, use custom validation controls and write the validation methods, or create a custom control that does the validation the same way as the validation controls provided by the ASP. Since the third option is out of my scope for this project, I chose the second option, using the custom validation control.