how to validate QueryString?

  • Thread starter Thread starter Jassim Rahma
  • Start date Start date
J

Jassim Rahma

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.
 
You could use the static TryParse method on the Int32 structure to see
if the string is an integer.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Jassim Rahma said:
sorry.. posted in csharp by mistake



Jassim Rahma said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top