Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

c# isNumeric equivalent

Status
Not open for further replies.

James1981

Programmer
Nov 2, 2002
76
US
Hi,

In classic ASP i used isNumeric() to check if a querystring was a valid integer before using it in a query where it checked against an integer in the database.

Is there an equivalent method for performing this check when the page is loaded in c#? The value must be numeric else the page throws up an error.

Cheers
James
 
Google:

c# isNumeric

penny1.gif
penny1.gif

The answer to getting answered -- faq855-2992
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top