public bool IsNumeric(string value)
{
bool result = false;
try
{
Convert.ToInt64(value);
result = true;
}
catch (Exception ex)
{
result = false;
}
return result;
}
Add a comment