Numeric Check & number validation by c#
public static bool IsNumeric(string value)
{
try
{
decimal credit = decimal.Parse(value);
}
catch
{
return false;
}
return true;
}
{
try
{
decimal credit = decimal.Parse(value);
}
catch
{
return false;
}
return true;
}
Comments
Post a Comment