Booma
04-02-2008, 05:45 AM
Hello everyone,
I'm validating a query string to make sure it's an Integer like this:
If Not IsNumeric(Request.QueryString("course")) Then do something else
Which works fine if the query string is a mixture of Intergers and letters, (46fhh or e5) for instance.
However if the query string contains something like a full stop or a comma, (4. or 5ty/ or 6,) for instance, the statement returns true.
I'd like it to return false if it contains anything but an Integer.
Any ideas would be appreciated.
Many Thanks
I'm validating a query string to make sure it's an Integer like this:
If Not IsNumeric(Request.QueryString("course")) Then do something else
Which works fine if the query string is a mixture of Intergers and letters, (46fhh or e5) for instance.
However if the query string contains something like a full stop or a comma, (4. or 5ty/ or 6,) for instance, the statement returns true.
I'd like it to return false if it contains anything but an Integer.
Any ideas would be appreciated.
Many Thanks