The text of this article is not in this database — only its details are. The old site it was published on is gone, but the Internet Archive kept a copy: Data Annotations in Silverlight 3 Application
4 Comments
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.

Sathya KeditedPosted Mar 11, 2013, 5:07 AMEdited Mar 11, 2013, 5:09 AM
Hi, In my silverlight application I implemented water marked text box. I used your way to put validation for water marked text box. But it's not working. Is thr any way to proceed this validation for watermarked textbox??
Neeraj SinghPosted Aug 31, 2011, 1:14 PM
Hello Diptimaya, Good article. In addition I have a query for you.....how to display same data validation messages for a multilingual application. Please provide me either sample or any article. My email id is [email protected]
Mark KamoskiPosted Feb 11, 2011, 3:52 PM
Diptimaya - Please help. I am now facing a problem because the data-annotations are not being used by the DataForm in my project. I am using Silverlight 4, .NET Framework 4, Visual Web Developer 2010 Express. I have 1 WebApp project, which contains my DataService.svc and Model.edmx and my Self-Tracking-Entities generator Model.TT file, and the Default.aspx that hosts the Silverlight front-end. I have a custom Silverlight Class Library project that has a linked-file pointing to the Model.TT file to expose the classes in a Silverlight-consumable way. I have 1 Silverlight project that has a reference to my custom Silverlight Class Libary project (to be able to reference the entity types) and it has a reference to the DataService.svc and so on. The problem is, I think, is that the data-annotations are not being "carried over" to the Silverlight side-- but, I am not sure why. Must one tell the DataForm to use them in some way? What could be missing? Any help that you can provide is appreciated. Thank you. - Mark Kamoski
UwePosted Aug 6, 2009, 10:55 AM
Hello, is it somehow possible to use localized error message from a resource file or from the db? Setting error messages like "ErrorMessage="Age must be 18 ~ 40"" doesn't help for an international app. Thanks for your support Uwe