Validating multiple controls
NET 2.0,3.5,4.0, AJAX, JQuery, JSON, XML, XSLT, ADO.
Ok so this validates all the controls on the form which may not be what we are after so how about checking the type of the control inside the loop?
Controls 'Loops through array of controls If Type Of control Is Text Box Then If control.
This solves the validation problem, but the caret in the passwordbox is always at the very beginning, ruining any data entered. EDIT: OK, so it turns out I mistyped the event handler in the xaml, and the solution actually works: I have to manually update the binding, because the event fires before the binding is updated. From the above markup you can make out that there are four required field validators and out of the four validators three have validation group property defined.Also there is no way to specify multiple validaiton group using the Validation Group property of the button control. I have 2 textboxes, I need to make sure at least one textbox has a value in it.I have looked at the validators offered by asp and they all only validate one control at a time. control For more info please refer the following links: Depend this helps!