Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Type of request objects

Status
Not open for further replies.

sefafo

Programmer
Aug 28, 2003
36
CO
Hello again,
could any body tell me if it's possible to know the type of a html form object in an asp page!

I mean, It's possible to do something like this:

if request("nombre").type="textbox" then
.
.
.

if request("nombre").type="checkbox" then
..
.


Thanks a lot!
 
sefafo,

I am unfamiliar with that particular property. You might check here and see if this might help:


--------------------------------------------------------------------------------------------------------------------------
Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so.
--Douglas Adams
 
To my knowledge that is not possible because the data is passed as key/value pairs. No other information is opassed (such as extra attributes, for instance).

To see exactly the information that is passed you could print out Response.Form with no identifiers, should print out the data similar to the way Request.QueryString is the full set of data that is passed in a GET request.

-Tarwn

01000111 01101111 01110100 00100000 01000011 01101111 01100110 01100110 01100101 01100101 00111111
The never-completed website:
 
Sorry, Tarwn, but do you mean Request.Form?

--------------------------------------------------------------------------------------------------------------------------
Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so.
--Douglas Adams
 
Yes, sorry about that, blame the vcacation for turning my mind to mush, i just went almost a week without an internet onnection :)

01000111 01101111 01110100 00100000 01000011 01101111 01100110 01100110 01100101 01100101 00111111
The never-completed website:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top