vbnet Loop through Server Variables

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

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

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

Updated: Thursday 7th October 2010, 13:20pm

There are 0 comments

Leave a comment of your own

Comments are currently closed.