Hello All,
I want to validate the field whose datatype is float in the database.Please tell me the required expression and regular expression for the float datatype so that user can enter only the digits in float.
for example this is giving error
else if(!Regex.IsMatch(lowerlimit,
@"[+-]?(?:(?:\d+\.\d*)|(?:\d*\.\d+))"))
{
ModelState.AddModelError("lowerlimit", "Please enter valid lower limit");
}
Thanks Ritz