Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 19th, 2005, 02:17 PM
Ivan
Guest
 
Posts: n/a
Default request instead of request.QueryString

hi,

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

thanks


  #2  
Old July 19th, 2005, 02:17 PM
Catalyst
Guest
 
Posts: n/a
Default Re: request instead of request.QueryString

"Ivan" <ivan@fake.email.com> wrote in news:eCgF2sibEHA.252
@TK2MSFTNGP10.phx.gbl:
[color=blue]
> hi,
>
> I saw some program using "request("fieldname") " instead of
> "request.QueryString" to get the value from URL, what's the different ??
>
> thanks
>
>
>[/color]

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 !
  #3  
Old July 19th, 2005, 02:18 PM
Rob Collyer
Guest
 
Posts: n/a
Default Re: request instead of request.QueryString

Catalyst <webforumz@webforumz.com> wrote in
news:Xns952C1038D9075webforumzwebforumzco@66.75.16 2.198:
[color=blue]
> "Ivan" <ivan@fake.email.com> wrote in news:eCgF2sibEHA.252
> @TK2MSFTNGP10.phx.gbl:
>[color=green]
>> hi,
>>
>> I saw some program using "request("fieldname") " instead of
>> "request.QueryString" to get the value from URL, what's the different
>> ??
>>
>> thanks
>>
>>
>>[/color]
>
> 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.
>[/color]

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 !
  #4  
Old July 19th, 2005, 02:18 PM
Catalyst
Guest
 
Posts: n/a
Default Re: request instead of request.QueryString

Rob Collyer <webforumz@webforumz.com> wrote in
news:Xns952C64E10E3A9webforumzwebforumzco@217.32.2 52.50:
[color=blue]
> Catalyst <webforumz@webforumz.com> wrote in
> news:Xns952C1038D9075webforumzwebforumzco@66.75.16 2.198:
>[color=green]
>> "Ivan" <ivan@fake.email.com> wrote in news:eCgF2sibEHA.252
>> @TK2MSFTNGP10.phx.gbl:
>>[color=darkred]
>>> hi,
>>>
>>> I saw some program using "request("fieldname") " instead of
>>> "request.QueryString" to get the value from URL, what's the
>>> different ??
>>>
>>> thanks
>>>
>>>
>>>[/color]
>>
>> 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.
>>[/color]
>
> 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)
>[/color]

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 !
  #5  
Old July 19th, 2005, 02:18 PM
Aaron [SQL Server MVP]
Guest
 
Posts: n/a
Default Re: request instead of request.QueryString

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...[color=blue]
> hi,
>
> I saw some program using "request("fieldname") " instead of
> "request.QueryString" to get the value from URL, what's the different ??
>
> thanks
>
>[/color]


  #6  
Old July 19th, 2005, 02:19 PM
Ivan
Guest
 
Posts: n/a
Default Re: request instead of request.QueryString

thanks all for your help :P

"Catalyst" <webforumz@webforumz.com> wrote in message
news:Xns952C1619392D0webforumzwebforumzco@66.75.16 2.201...
Rob Collyer <webforumz@webforumz.com> wrote in
news:Xns952C64E10E3A9webforumzwebforumzco@217.32.2 52.50:
[color=blue]
> Catalyst <webforumz@webforumz.com> wrote in
> news:Xns952C1038D9075webforumzwebforumzco@66.75.16 2.198:
>[color=green]
>> "Ivan" <ivan@fake.email.com> wrote in news:eCgF2sibEHA.252
>> @TK2MSFTNGP10.phx.gbl:
>>[color=darkred]
>>> hi,
>>>
>>> I saw some program using "request("fieldname") " instead of
>>> "request.QueryString" to get the value from URL, what's the
>>> different ??
>>>
>>> thanks
>>>
>>>
>>>[/color]
>>
>> 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.
>>[/color]
>
> 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)
>[/color]

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 !


 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles