RobLog

Web Design in the World of .NET (C# and VB.NET, XML, and Javascript). I learned how to program from TheDailyWTF.com!
posts - 140, comments - 129, trackbacks - 5

My Links

News

Main Site Cert Corner Goals About Me

Article Categories

Archives

Post Categories

Image Galleries

.NET

Personal

WOW


How to programmatically write out all form members to the page only in Debug Mode

#If DEBUG Then

            ' Write all of the form and/or parameter items out.

            Dim param As Collections.Specialized.NameValueCollection = Request.Form 'or Request.Params

            For i As Integer = 0 To param.Count - 1

                Response.Write(param.Keys.Item(i) & " = " & param(i) & "<br />")

            Next

#End If

 

This will only happen when code is compiled for Debug and not Release.

 

You can add this to a button or page load event.

posted on Wednesday, February 23, 2005 8:00 PM

Feedback

No comments posted yet.

Post Comment

Title  
Name  
Url
Comment   
Protected by Clearscreen.SharpHIPEnter the code you see: