Masking Textbox to accept only decimals
问题 I am using the technique from this link to mask my textbox to accept strings that are in decimal-format (Digits with a single period). How to define TextBox input restrictions? Here is the regex I put in the mask: b:Masking.Mask="^\d+(\.\d{1,2})?$" For some odd reason, it lets me input the digits but I cannot insert the period in my textbox. I've also validated the regex here so regex is definitely correct. http://derekslager.com/blog/posts/2007/09/a-better-dotnet-regular-expression-tester