can i get validation on weight which can take decimal values and also integer.
suppose if i enter 60 it has to accept and if i enter 60.50 it has to accept (60.1..etc)
but not characters. Thank you.
can i get validation on weight which can take decimal values and also integer.
Share
Use regular expression validator to constrain input.
Positive Decimal:
(^\d*\.?\d*[1-9]+\d*$)|(^[1-9]+\d*\.\d*$)How To: Use Regular Expressions to Constrain Input in ASP.NET