Just i started going through silverlight 3. I have couple questions to under stand the bsic programming/approches. Validation :
Q 1: I understand, write validation in server(one place). Validation happens in client and server. I have couple of data entry forms. I will update the server when user click on save button. In this case, Can we use validators in silverlight
like we use validators in .Net?
Q 2: Let assume we are getting data from WCF/Webservice (hosted by third party). How do we use validation in silverlight? Because we can't force third party team to provide validation on entity / entity properties.
Q 1: I understand, write validation in server(one place). Validation happens in client and server. I have couple of data entry forms. I will update the server when user click on save button. In this case, Can we use validators in silverlight like we use validators
in .Net?
Yes, you can use validator to apply validation manually,please check this article
Q 2: Let assume we are getting data from WCF/Webservice (hosted by third party). How do we use validation in silverlight? Because we can't force third party team to provide validation on entity / entity properties.
One way is to modify auto-generating entities, however, it will get troubles on updating webservices. Another approach is to share entities libraries between silverlight and server. please check this thread,
pprasadravi
Member
2 Points
16 Posts
Client Validation
Jul 27, 2009 04:25 PM | LINK
Hi,
Just i started going through silverlight 3. I have couple questions to under stand the bsic programming/approches. Validation :
Q 1: I understand, write validation in server(one place). Validation happens in client and server. I have couple of data entry forms. I will update the server when user click on save button. In this case, Can we use validators in silverlight like we use validators in .Net?
Q 2: Let assume we are getting data from WCF/Webservice (hosted by third party). How do we use validation in silverlight? Because we can't force third party team to provide validation on entity / entity properties.
Thanks
Ravi Potturi
silverlight 3 validation datavalidation
NavinKumar.K.S
Participant
864 Points
471 Posts
Re: Client Validation
Jul 28, 2009 04:38 AM | LINK
friend go with this link u will get solution for all your's problem
NavinKumar.K.S
ksnavinkumar@live.com
Mog Liang -...
All-Star
21645 Points
2132 Posts
Microsoft
Re: Client Validation
Aug 03, 2009 03:06 AM | LINK
Hi Ravi,
Yes, you can use validator to apply validation manually,please check this article
http://msdn.microsoft.com/en-us/library/dd901590(VS.95).aspx
One way is to modify auto-generating entities, however, it will get troubles on updating webservices. Another approach is to share entities libraries between silverlight and server. please check this thread,
http://silverlight.net/forums/t/114482.aspx
Thanks,
Microsoft Online Community Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help.