tags:

views:

19

answers:

3

I'm debugging some ASP code and I need to get a quick printout of the current Request datastructure, which I believe is an array of key/value pairs.

I see that Request.Form("key") is the method for extracting individual elements.

Any tips on printing out the entire thing?

Thanks

+1  A: 

Take a look here: An Overview of Classic ASP's Request Object

Rubens Farias
+1  A: 

Try a FOR/EACH loop:

for each x in Request.Form
    Response.Write(x)
Next
Stephen Wrighton
+1  A: 

Try this

For Each item In Request.Form
    Response.Write "Key: " & item & " - Value: " & Request.Form(item) & "<BR />"
Next
Wil