Logo 
Search:

Asp.net Answers

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds
  Question Asked By: Vivek Patel   on Aug 03 In Asp.net Category.

  
Question Answered By: Julia Flores   on Aug 03

This can probably be tweaked to suit your needs:


// from
// http://www.devcity.net/forums/topic.asp?tid=7267
public static bool isNumeric(object val)
{
try
{
//string val = value.ToString();
double d = System.Double.Parse(val.ToString(),
System.Globalization.NumberStyles.Any);
return true;
}
catch (System.Exception)
{
return false;
}
}

Share: 

 

This Question has 6 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Math function to determine if a number is an int Or get search suggestion and latest updates.


Tagged: