Any Reason Why IsNumeric() Fails On A Number?

Posted by Jason on Stack Overflow See other posts from Stack Overflow or by Jason
Published on 2009-08-02T18:28:13Z Indexed on 2010/05/27 0:21 UTC
Read the original article Hit count: 435

Filed under:
|
|

I currently have this line of code which has been working for the past 6 months:

If IsNumeric(txtProductID.Text) Then
   ...do stuff
Else
   Dim msg As String = "Error!"
End If

All of the sudden, no matter what kind of entry is put in txtProductID (including plain numbers), it fails! Is there reason for me to be going crazy over this?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about vb.net