vbnet Loop through Server Variables

Public Function GetServerVariables() As String
	Dim s As New StringBuilder

	For Each x In Request.ServerVariables
		s.Append("<td>" & x & "</td>")
		s.Append("<td>" & Request.ServerVariables(x) & "</td>")

	Return s.ToString()
End Function
Loops through Server Variables collection and returns them, using String Builder.

Updated: Thursday 7th October 2010, 04:50pm

There are 0 comments

Leave a comment of your own

Comments are currently closed.