Click here to Skip to main content
15,868,016 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends,
I was asked in interview
You are consuming service in view using jquery ajax, how can you perform data annotation on the data returned from the service?

Any idea how can we implement the same?

Thanks in advance
Posted

1 solution

 
Share this answer
 
Comments
dhage.prashant01 10-Sep-14 10:23am    
What was I trying to know
From view I'm calling WCF service using jquery, as per my understanding WCF does not have data annotation.

So when we receive the data from the wcf service, how we can attach data annotation to the data received from the service and validate the same?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900