hi,
I want accept decimal no eg1023.56, 59.00,1566.36
decimal point is allow for only one time
public static bool validdecimal(string text)
{
Regex regex = new Regex("^\d*\.?((25)|(50)|(5)|(75)|(0)|(00))?$");////Not work
return !regex.IsMatch(text);
}
{
Regex regex = new Regex("^\d*\.?((25)|(50)|(5)|(75)|(0)|(00))?$");////Not work
return !regex.IsMatch(text);
}
on call
e.Handled = !ClassValidation.Validdecimal(e.Text);
Priya MPosted Feb 19, 2016, 6:21 AM
Amit Kumar SinghPosted Feb 18, 2016, 8:24 AM
\d{1,10}\.\d{1,2}Chandu KumawatPosted Feb 18, 2016, 6:20 AM
Priya MPosted Feb 18, 2016, 5:50 AM
Priya MPosted Feb 18, 2016, 5:48 AM
Amit Kumar SinghPosted Feb 18, 2016, 5:43 AM
Priya MPosted Feb 18, 2016, 5:41 AM
Amit Kumar SinghPosted Feb 18, 2016, 5:32 AM
ErrorMessage="*" Display="Dynamic" ValidationExpression="">
Chandu KumawatPosted Feb 18, 2016, 5:22 AM