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 5 2426
"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 !
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 !
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 ! 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
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 ! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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
|
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>
|
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?
|
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!
|
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.
| |
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 %>
<%
|
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
|
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
|
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 =...
|
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,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |