Skip to main content
Home Forums Silverlight Programming Silverlight Controls and Silverlight Toolkit Format and validation in a textbox?
3 replies. Latest Post by varshavmane on June 26, 2009.
(0)
karlsson...
Member
1 points
73 Posts
06-25-2009 9:48 AM |
Is there any way to set format and validation on a TextBox, for example:
111111-1111
it should be possible for the user to add 10 digits, the - should appear automatically in a position.
Is this possible, and in that case how?
varshavmane
Contributor
6263 points
1,489 Posts
06-25-2009 11:52 AM |
Hello,
Hope this helps you :
{
}
And Set txt.MaxLength = 10;
HTH
06-26-2009 2:58 AM |
Hi
I need to have this customized, for example different formats for zipcode in different countries. So I need to fetch it freom a .resx file or from configuration, I'm not able to 'hardcode' it.
Is there support for masks?
Regards Katrin
06-26-2009 3:35 AM |
I dont think so but you can try creating Silverlight Class Library for the same and take the reference of it in your Silverlight Project.