I am having a model with a float propert
public float Amount { get; set; }
and a text box to display anf edit the value of amount.
only number accepted
my text box should allow characters and on while entering it should show error message
here i want to add a validation to restrict only number and decimal point. here my validation is not working when i enter characters in the text box.
When i checked i can see that upon entering characters on text box {{model.amount}} is turned to blank . I think this is the problem. Can someone suggest what to do in this scenario