When I access the Request object as a collection, where does it get it’s data from?
For example I know
Request["someKey"]
will return the value of either
Request.QueryString["someKey"]
or
Request.Form["someKey"]
depending on which is set.
Are any other collections searched (cookies, session)?
What happens is the key value pair exists in several of the collections?
I took a look in MSDN, but couldn’t find much info.
http://msdn.microsoft.com/en-us/library/system.web.httpcontext.request
Thanks for the help!
If you decompile this assembly and take a look at the source, it will look in
QueryString, thenForm, thenCookies, thenServerVariables, before finally returningnullif none of them contain the item.