Validating multiple controls
I hope that this article would have helped you in understanding the Validation Controls in ASP. Please share it if you know more about this article.
Your feedback and constructive contributions are welcome.
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?
I would like have a xaml-only solution, but code behind is perfectly acceptable. I am curious if there is a proper, XAML only way using validation rules, IData Error Info, or some other means to have a binding between the controls without having to hook into the events and manually update.
For more complex validation, it is often necessary to push your validation into the View Model, or even the Model in many cases. Here's a link to an excellent article on the subject: may be helpful.
Controls 'Loops through array of controls If Type Of control Is Text Box Then If control.