Re: request instead of request.QueryString by Catalyst
Catalyst
Tue Jul 20 04:10:15 CDT 2004
Rob Collyer <webforumz@webforumz.com> wrote in
news:Xns952C64E10E3A9webforumzwebforumzco@217.32.252.50:
> Catalyst <webforumz@webforumz.com> wrote in
> news:Xns952C1038D9075webforumzwebforumzco@66.75.162.198:
>
>> "Ivan" <ivan@fake.email.com> wrote in news:eCgF2sibEHA.252
>> @TK2MSFTNGP10.phx.gbl:
>>
>>> hi,
>>>
>>> I saw some program using "request("fieldname") " instead of
>>> "request.QueryString" to get the value from URL, what's the
>>> different ??
>>>
>>> thanks
>>>
>>>
>>>
>>
>> If you don't specify a collection to search, asp will look through
>> the following in the shown order until a match is found.
>>
>> QueryString
>> Form
>> Cookies
>> ClientCertificate
>> ServerVariables
>>
>> So you could say that request("x") is the same as
>> request.querystring("x") if there is a querystring.
>>
>
> I must point out to all that request("x") should be avoided as it is
> very slow perfomance wise compared to specifying the invididual
> collection (eg, form, querystring, servervariables, cookie)
>
Yeah, and you don't really know what you're getting.
--
Catalyst
www.webforumz.com
Free Web Design and Development Help, Discussions, tips and Critique!
ASP, VB, .NET, SQL, CSS, HTML, Javascript, Flash, XML, SEO !