Request Collection
Skip Navigation Links.

Request Collection

Skip Navigation LinksHome :: Classic ASP :: Request Collection

Here's a simple Vb function you can use on active server pages to see what is in the Request.QueryString and Request.Form collections for debugging your applications.

Call like this: <%WriteRequest%>
Returns this: a list of items from Request.QueryString and Request.Form

<%
Sub WriteRequest()
'write the request objects to the page for debugging purposes
    Dim str, x, IntI, flag
    flag = False
    Response.Write "<H2>Request.Form</H2>"
    For Each x In Request.Form
        Response.Write x & " = " &  Request.Form(x) & " ------- " & Len(Request.Form(x)) & " chrs<BR>" & VbCrLf
        flag = True
    Next
    If     flag = False Then
        Response.Write "Request.Form object is empty." & str
    End If
    flag = False
    Response.Write "<H2>Request.QueryString</H2>"
    MyArray = Split(Request.QueryString,"&")
    For IntI = LBound(MyArray) To UBound(MyArray)
        Response.Write

The rest of this page is hidden, you must be a member to view it

To become a member and get immediate access to the course please join here Free!

Already Enrolled? please click here to Login

Next >> Check URL/write href tag
top of page
all content ©1996/2012 BennySutton.com
all images © their respective owners This site uses Thumbshots previews