473,837 Members | 1,579 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

request instead of request.QuerySt ring

hi,

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

thanks
Jul 19 '05 #1
5 2427
"Ivan" <iv**@fake.emai l.com> wrote in news:eCgF2sibEH A.252
@TK2MSFTNGP10.p hx.gbl:
hi,

I saw some program using "request("field name") " instead of
"request.QueryS tring" 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
ClientCertifica te
ServerVariables

So you could say that request("x") is the same as request.queryst ring("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*******@webf orumz.com> wrote in
news:Xn******** *************** ***********@66. 75.162.198:
"Ivan" <iv**@fake.emai l.com> wrote in news:eCgF2sibEH A.252
@TK2MSFTNGP10.p hx.gbl:
hi,

I saw some program using "request("field name") " instead of
"request.QueryS tring" 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
ClientCertifica te
ServerVariables

So you could say that request("x") is the same as
request.queryst ring("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*******@webf orumz.com> wrote in
news:Xn******** *************** ***********@217 .32.252.50:
Catalyst <we*******@webf orumz.com> wrote in
news:Xn******** *************** ***********@66. 75.162.198:
"Ivan" <iv**@fake.emai l.com> wrote in news:eCgF2sibEH A.252
@TK2MSFTNGP10.p hx.gbl:
hi,

I saw some program using "request("field name") " instead of
"request.QueryS tring" 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
ClientCertifica te
ServerVariables

So you could say that request("x") is the same as
request.queryst ring("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.emai l.com> wrote in message
news:eC******** *****@TK2MSFTNG P10.phx.gbl...
hi,

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

thanks

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

"Catalyst" <we*******@webf orumz.com> wrote in message
news:Xn******** *************** ***********@66. 75.162.201...
Rob Collyer <we*******@webf orumz.com> wrote in
news:Xn******** *************** ***********@217 .32.252.50:
Catalyst <we*******@webf orumz.com> wrote in
news:Xn******** *************** ***********@66. 75.162.198:
"Ivan" <iv**@fake.emai l.com> wrote in news:eCgF2sibEH A.252
@TK2MSFTNGP10.p hx.gbl:
hi,

I saw some program using "request("field name") " instead of
"request.QueryS tring" 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
ClientCertifica te
ServerVariables

So you could say that request("x") is the same as
request.queryst ring("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
2585
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 example the asp page reads the content of this txtName as Request.Form("txtName") I want to achieve that the asp form is accessed through a URL where i can pass the value of txtName without going to the page of the form and clicking
5
2560
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 wrong? index.html ======= <html> <body> <p>browse by artist</p>
4
25366
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 what I did in trational asp, however if I did abov in ASP.NET, I always got an error of "Object reference not set to an instance of an object. " How should I solve the problem?
4
4406
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 accessable by a number of other functions and subs but when I do the above I get the following error!
2
12610
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 reason, I get an exception in the initialization - "request is not available in this context" . I tried the same with the property "Session" and didn't have any problems.
7
9664
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 operation on parameters not passed. Example: Make a TST.asp and post to it as TST.asp?STATE=TEST <%@ Language=JavaScript %> <%
2
7400
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 id thats shown in the address bar ("..com?id=4" would get the record with the id 4). How do I get all records if the querystring is empty ("..com") I have: <% Dim rs_yadayada
2
5523
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 that in if I do this: var state = <%=Request.QueryString%> This returns an undefined object that I can't seem to do any checks
4
1865
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 with forms) due to projects platform (a mobile web site) i cant use cookies (cookies arent supported on all phones), anyway because of that i do un/pw check on very page and i have to put Dim MyUn As String =...
0
9851
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9695
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10642
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10286
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9420
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5863
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4481
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4060
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3128
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.