hi,

I saw some program using "request("fieldname") " instead of
"request.QueryString" to get the value from URL, what's the different ??

thanks

Re: request instead of request.QueryString by Catalyst

Catalyst
Tue Jul 20 03:34:25 CDT 2004

"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.

--
Catalyst
www.webforumz.com
Free Web Design and Development Help, Discussions, tips and Critique!
ASP, VB, .NET, SQL, CSS, HTML, Javascript, Flash, XML, SEO !

Re: request instead of request.QueryString by Rob

Rob
Tue Jul 20 03:53:50 CDT 2004

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)

--
Robert Collyer
www.webforumz.com
Free Web Design and Development Help, Discussions, tips and Critique!
ASP, VB, .NET, SQL, CSS, HTML, Javascript, Flash, XML, SEO !

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 !

Re: request instead of request.QueryString by Aaron

Aaron
Tue Jul 20 08:09:56 CDT 2004

http://www.aspfaq.com/2111

--
http://www.aspfaq.com/
(Reverse address to reply.)




"Ivan" <ivan@fake.email.com> wrote in message
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
>
>



Re: request instead of request.QueryString by Ivan

Ivan
Tue Jul 20 21:45:18 CDT 2004

thanks all for your help :P

"Catalyst" <webforumz@webforumz.com> wrote in message
news:Xns952C1619392D0webforumzwebforumzco@66.75.162.201...
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 !