Select Page

During my testing and working on something at work, I found some nice variable display info that can be used when trying to debug/troubleshoot some classic ASP code.  Stuff I usually can’t find when I need it.  So I’m posting it here.

<TABLE BORDER="1"> <TR><TD><B>Server Variable</B></TD><TD><B>Value</B></TD></TR> <% For Each strKey In Request.form %>  <TR> <TD><%= strKey %></TD> <TD><%= Request.form(strKey) %></TD> </TR> <% Next %> </TABLE>

 

Also,

<TABLE BORDER="1"> <TR><TD><B>Server Variable</B></TD><TD><B>Value</B></TD></TR> <% For Each strKey In Request.ServerVariables %>  <TR> <TD><%= strKey %></TD> <TD><%= Request.ServerVariables(strKey) %></TD> </TR> <% Next %> </TABLE>