Input text validation?

Aug 29, 2013 at 3:46 PM
Hi,

I am quite curious if there is any possibility to validate input text (regex validation rules, etc.)?

For example, I need to input long number value to a textbox ( I decided to use the Type of string for my property) - how to validate input and do not permit user to put characters?

Thanks a lot, BR
Coordinator
Aug 29, 2013 at 9:29 PM
I think standard validation attributes should work (remember to implement IDataErrorInfo) - try
http://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.regularexpressionattribute.aspx
Sep 6, 2013 at 2:30 PM
thanks