Powered by MSDN

US - English
NEW! Silverlight 5 is available Learn More

Client Validation RSS

2 replies

Last post Aug 03, 2009 03:06 AM by Mog Liang - MSFT

(0)
  • pprasadravi

    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

    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

  • Mog Liang - MSFT

    Mog Liang -...

    All-Star

    21645 Points

    2132 Posts

    Microsoft

    Re: Client Validation

    Aug 03, 2009 03:06 AM | LINK

    Hi Ravi,

    pprasadravi

    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

    http://msdn.microsoft.com/en-us/library/dd901590(VS.95).aspx

    pprasadravi

    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,

    http://silverlight.net/forums/t/114482.aspx

    Thanks,

    Mog Liang
    Microsoft Online Community Support

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.