I have an ID which I pass from the QueryString["id"]. The id is integer only
and I want before performing any action to validate if the Id is valid
integet.
sorry.. posted in csharp by mistake
> I have an ID which I pass from the QueryString["id"]. The id is integer
> only and I want before performing any action to validate if the Id is
> valid integet.
Nicholas Paldino [.NET/C# MVP] - 23 Jul 2007 16:06 GMT
You could use the static TryParse method on the Int32 structure to see
if the string is an integer.

Signature
- Nicholas Paldino [.NET/C# MVP]
- mvp@spam.guard.caspershouse.com
> sorry.. posted in csharp by mistake
>
>> I have an ID which I pass from the QueryString["id"]. The id is integer
>> only and I want before performing any action to validate if the Id is
>> valid integet.