473,395 Members | 1,440 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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
Jul 19 '05 #1
5 2382
"Ivan" <iv**@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 !
Jul 19 '05 #2
Catalyst <we*******@webforumz.com> wrote in
news:Xn**********************************@66.75.16 2.198:
"Ivan" <iv**@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 !
Jul 19 '05 #3
Rob Collyer <we*******@webforumz.com> wrote in
news:Xn**********************************@217.32.2 52.50:
Catalyst <we*******@webforumz.com> wrote in
news:Xn**********************************@66.75.16 2.198:
"Ivan" <iv**@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 !
Jul 19 '05 #4
http://www.aspfaq.com/2111

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


"Ivan" <iv**@fake.email.com> wrote in message
news:eC*************@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

Jul 19 '05 #5
thanks all for your help :P

"Catalyst" <we*******@webforumz.com> wrote in message
news:Xn**********************************@66.75.16 2.201...
Rob Collyer <we*******@webforumz.com> wrote in
news:Xn**********************************@217.32.2 52.50:
Catalyst <we*******@webforumz.com> wrote in
news:Xn**********************************@66.75.16 2.198:
"Ivan" <iv**@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 !
Jul 19 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: momo | last post by:
Hello Newsgroup, I want to pass a Request.Form variable to an ASP form, through the url for example lets say i have a form with a textfiled called "txtName" if i click the submit button for...
5
by: thomas | last post by:
I'm having a bit of trouble using Request.QueryString(). I want to click on the link to browse all <artist> records in an xml file begining with a particular letter. Any ideas where I'm going...
4
by: Guoqi Zheng | last post by:
On my application, I need to have different action based on the pass in query string. When the query string is not presented, I try to use If request.querystring("id") ="" THEN ...... This is...
4
by: Tim::.. | last post by:
Can someone please tell me why this doesn't work! Error: Request is not available in this context Private rowID As Integer = Request.QueryString(ID) I need to have the variable rowID...
2
by: ruthiefy | last post by:
Hi, I created a class(AAA) which derives from System.Web.UI.Page. In the new class (AAA) I created some private variables and I initialize the variables from the property "Request". For some...
7
by: =?Utf-8?B?QVRT?= | last post by:
HOWTO Make CStr for JavaScript on ASP w/ Request.Form and QueryString In ASP, Request.Form and Request.QueryString return objects that do not support "toString", or any JavaScript string...
2
by: Kim | last post by:
How do I get all walues if my querystring is empty? If I have a table with let's say 10 rows/records, (ID 1-10). I then have a recordset with request.querystring("id") and get the record having the...
2
by: Doogie | last post by:
Hi, I'm writing Javascript code to parse out a query string. I want to handle the case where a parameter value may not be sent. So consider a parameter called "State". If the user doesn't pass...
4
by: .nLL | last post by:
Hi, im am a classic asp developer and started to learn asp.net but got stuck with a simple problem even before i step in to further. to learn i have started from a simple project (a login system...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.