I have an HTML Textbox where the user will input data, which in turn will be saved in an SQLcolumn of type decimal(12,4). How will I restrict my textbox to allow either number or decimal value of above-mentioned precision?
This is my textbox code:
@Html.TextBoxFor(m => m.Rate, null, new {@maxlength = "12", style = "width:87px;"})