Problems using Request.Querystring in ASP.net C#

  • Thread starter Thread starter Imran Aziz
  • Start date Start date
I

Imran Aziz

Hello All,
I am new to ASP.net, have been using ASP for sometime, I am trying to
get an integer variable sent in querystring but keep getting all sorts of
errors when I try to use it the same way as I did with ASP.
Request.Querystring["ID"]
Do I have to do an explicit conversion to integer to get the integer ID from
the query string ?

Imran.
 
Got that thanks :)
Imran.
Brock Allen said:
System.Int32.Parse

-Brock
DevelopMentor
http://staff.develop.com/ballen


Hello All,
I am new to ASP.net, have been using ASP for sometime, I am trying
to
get an integer variable sent in querystring but keep getting all sorts
of
errors when I try to use it the same way as I did with ASP.
Request.Querystring["ID"]
Do I have to do an explicit conversion to integer to get the integer
ID from
the query string ?
Imran.
 

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