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.

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! NET 2.0/3.5/4.0, j Query, JSON, Javascript, IIS and related technologies. He has great experience in design patterns and N-Tier Architecture. More than 6 years of experience in IT field, currently serving a MNC as a Tech Lead/Architect. NET developer and have expertise over Web technologies like ASP.Because of this, I can't find a way to access it in code-behind (since Password Box.Password is not a dependency property by itself) in the manner expressed in this solution.

Leave a Reply