Solved

Request.Item and other properties

Posted on 2002-04-25
9
1,055 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
9 Comments
 
LVL 1

Expert Comment

by:emeysenburg
Comment Utility
0
 

Expert Comment

by:xbathala
Comment Utility
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
Comment Utility
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
 
LVL 30

Expert Comment

by:third
Comment Utility
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
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
LVL 11

Expert Comment

by:ASPGuru
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Using Currency Layer API within ASP 10 71
SQL Query Join 9 53
Creating TABS in ASP Classic NOT using DIV 22 57
INNER JOIN ? 8 29
I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now