Solved

Request.Item and other properties

Posted on 2002-04-25
9
1,213 Views
Last Modified: 2011-04-14
Hi Experts,

I found there is a property Item: Request.Item. Can you tell me what is that for and how to use that?
Moreover, can you let me know where to download a tutoral or similar that tells me all the properties of all objects in asp?
0
Comment
Question by:victorlong
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
9 Comments
 

Expert Comment

by:xbathala
ID: 6970127
one of the most complete reference that i know of is the help facility on Visual Interdev, in fact this is the one I still use for reference, but there are couple of .asp sites out there for reference.

re: request.item, it is a function in .asp that is used to retrieve HTML objects/variables. here are some of examples:

cookies: strName = Request.Cookies("Visitor")("Name")
querystring: strName = Request.QueryString("Name")
form: strName = Request.Form("Name")

for querystring and forms you can just do this:
strName = Request("Name")
altho this may confuse you especially when you are developing large web apps, handling multiple querystring and form variables.

you can also "request" http server variables, like the visitor's IP etc...
0
 

Author Comment

by:victorlong
ID: 6970188
Hi Experts,

I think you all misunderstood me :-(

When asked Request.Item("itemName") I meant a particular property of the object request!
I found this property in the design window of Visual Interdev: after type Request and the dot (Request.), the design window gave me a list including properties Item, Form,....

So, I want to know what is Request.Item("itemName") for and how to use it.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 30

Expert Comment

by:third
ID: 6970193
hi Victor!

Request(item)- this method will return an array of strings which contains the forms collection.


i personally recommend having you this link which provides ASP collection of items. i find it very useful in debugging my scripts.

http://www.4guysfromrolla.com/webtech/021099-1.shtml
0
 
LVL 11

Expert Comment

by:ASPGuru
ID: 6971554
Request.Item("itemName") is the same as Request("itemName") ...

Item is the standard Property, so you can omit it...

ASPGuru
0
 

Author Comment

by:victorlong
ID: 6973775
Hi ASPGuru,

Thanks a lot...
Then what can be a "itemName" in your comment? Are those in a form? So, all the names should be different?
0
 
LVL 11

Accepted Solution

by:
ASPGuru earned 80 total points
ID: 6973786
itemname is a the name of an item -> wow.. what a discovery... ;-)

ok.. i'll try to explain it...

There are more subCollections in Request:
Request.ClientCertificate
Request.Cookies
Request.Form
Request.QueryString
Request.ServerVariables

When you do Request.Item("itemName") or Request("itemName") then ASP actually searches for "itemName" in all subCollections, so this is potentially slower than using the subCollections directly...

You probably know that Request.Form contains POSTed formfields and Request.Querystring contains GETed formfields...

need more info?

ASPGuru
0
 

Author Comment

by:victorlong
ID: 6974792
Yes, I understand now!

I need more info for asp, but not for this question at the moment:-)

Thanks a lot for experts helped me on this question.
0
 

Expert Comment

by:zorba111
ID: 26400311
I want to add  this question to my knowledgebase, but no option to do so.
If I add a comment, maybe it will let me ?
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question