I have asp:TextBox to keep a value of money, i.e. \'1000\', \'1000,0\' and \'1000,00\' (comma is the delimiter because of Russian standard).
asp:TextBox
What
i used this one in javascript: may be of use for you in c#
var entered = '10.00'; var regex = /^\d+(?:\.\d{2})?$/; // starts with N digits optional ".\d\d" console.log(entered.match(regex));