Why is the Request collection of type Object?

  • Thread starter Thread starter Author #1
  • Start date Start date
A

Author #1

Can we actually carry along non-string values through the query
string? If yes, how? If not, why didn't they make it of type String?

Thx.
 
What is the exact type you are talking about ?

This is a string here :
http://msdn.microsoft.com/en-us/library/system.web.httprequest.item.aspx

My personal preference is to use explictely Request.QueryString (Request
will search other sources as well).

As long as you are consistent with the format you are using you could
convert back and forth but yes ultimately whatever appears in your browser
url is technically speaking text...
 

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