silverlight validation

silverlight validation

27 Sep 2011 08:09:53

Hello, I am writing a Silverlight application in visual studio 2010 and have my data in sqlserver 2008. I use Linq to sqlclasses on the webserver side which I expose to silverlight client through silverlight enabled wcf web service. Then i bind the proxy class members (that i get through service reference) to UI silverlight controls. I want to validate the user input in these controls whether it is textboxes datetimepickers grids e.t.c. I have read many articles about implementing the IDataErrorInfo interface in the class that i wish to bind e.t.c. Problem is that i do not bind to a class written by me.linq to sql class code is autogenerated. I bind to the proxy class (that is a linq to sql class exposed by a wcf service). I tried writing my validation rules in the designer of the dbml file in the in the "set" section of the properties(columns). I also tried implementing IDataErrorInfo interface in the designer file but neither approach validates user input in the UI. What can I do?

Image Loading

Fresh   Boarder
Posts: 1
From 27-Sep-2011
You're Points: 2
Bookmark
re:silverlight validation27 Sep 2011 19:09:47

Hi,

There is a nice way to validate data in silverlight form

http://www.silverlightshow.net/items/Creating-Rich-Data-Forms-in-Silverlight-3-Validation.aspx

It is easy to adopt any project.

thank you

RRaveen
Gold  Boarder
Posts: 156
From 03-Jun-2009
You're Points: 1106
Bookmark
^ Scroll to Top