The text of this article is not in this database — only its details are. Read it on the old site: Data Validation in Silverlight 3
15 Comments
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
The text of this article is not in this database — only its details are. Read it on the old site: Data Validation in Silverlight 3
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
Riddhi ValechaPosted Nov 24, 2012, 3:54 AM
HI...Thanks a lot for this validation example.... It really helped me out!! Please help me in my Silverlight and LINQ-To-SQL Class requirement: I have to execute the following: 1)select Max(ID) from Tbl_Mgmt where Username='abc' 2)THe id must be stored in the variable(say int id); 3)update Tbl_mgtm set outtime=Datetime.now.tostring() where ID=id && Username='abc' --- I have the update and max(ID) queries in LINQ. But, how to implement this using events and listeners in silverlight ?? Thanks in advance !!
NITIN KUMAR BASWANPosted Jun 14, 2012, 5:03 AM
for mail id validation it not working. for eg. if user even enter mailID: "@", it accepts that as well. So, acc to me for mailID code should be : public string EmailID { get {return _emailID;} set { System.Text.RegularExpressions.Regex r = new System.Text.RegularExpressions.Regex(@"[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?"); if (!r.IsMatch(value)) { throw new ArgumentException("A valid EmailID is required"); } _emailID = value; } }
sreelakshmi polavarapuPosted Nov 4, 2011, 2:27 AM
My Requirement is Create Silverligtapplication which is connected to a database.When the user logs in it should checked with the database whether the user ix existing r not and if not give error.New user registers into the site The data should be stored in the database. I have refered many sites but I did not get the exact way.Please help me.Kindly mention the steps.Please Thankyou
archana rajendranPosted Feb 7, 2011, 12:59 AM
There is a problem in running the code u have given ,it runs successfully sometimes and at sometimes it gives a run time error as exception unhandled by usercode just below the line where validation condition is checked . wats the solution for this problem
Thirmal ReddyPosted Dec 14, 2010, 1:46 AM
Thanks Posting Article. In this i have one issue. when i run the application with F5 and then entered wrong data in name text box and loosing the focus from that text box then it is throughing an error. But when i run application with Ctrl+F5 it working fine what could be the reason can you explain?
sai sarathPosted Nov 8, 2010, 7:15 AM
Dear Diptimaya, firstly thank you,your example is healped a lot for me. and in my app i haveto work with iccomand from my viewmodel. now i can able to do with button click,but my req is work with icommands. can you please suggest me any idea to do this.
ali asgarPosted Dec 28, 2009, 8:50 AM
when i add the validation class i get this error Error 1 'demotestsilverlight.Class1' does not implement interface member 'System.ComponentModel.INotifyPropertyChanged.PropertyChanged' D:\demotestsilverlight\demotestsilverlight\Class1.cs 15 18 demotestsilverlight can u help me wuth this
Navin KumarPosted Jul 28, 2009, 5:43 AM
hellow friend i have to do these validation when the datagrid is assigned to the same layoutroot or static panel where ever the textboxes are located in my application i have two static panels namely gridstaticpanel and exitstaticpanel in geidstaticpanel i have datagrid and in editstaticpanel i have the textboxes for the corresponding fields when i select a record in datagrid it will appear in the corresponding textboxes these thing are as usual in project what i need is when i suppose to edit those records in textboxes it should show the validation error or warning same as that you have described Data Validation in Silverlight 3 ok please teel me how can i do so
Navin KumarPosted Jul 27, 2009, 1:28 AM
hello friend i cant use the userinfo.cs class i have followed the step that u have described but this thing doesn't works weather i have to update my silverlight version what is the version name that you are using please send me the details everything i did what you have did but for me this doesn't works what will be the mistake