Reputation: 6577
how to validate the input form of a silverlight control? I have 3 controls, two out of three are text boxes (For name, and Age), and the remaining one control is date picker.
When i hit submit button, the validation should be invoked. how it will done??
thanks in advance.
Upvotes: 2
Views: 1531
Reputation: 4107
You may also find the Validation Application Block (which is part of the Enterprise Library Silverlight Integration Pack) useful. It's in public preview right now.
Upvotes: 0
Reputation: 957
I wrote my own validaion for SL2. It's based on:
Upvotes: 0
Reputation: 769
If you're using Silverlight 3 check out Data Validation. http://www.silverlightshow.net/items/Data-Validation-in-Silverlight-3.aspx
If you're using Silverlight 2 you'll have to roll your own code for validation.
Upvotes: 2