Request Browser properties.

  • Thread starter Thread starter whoopding
  • Start date Start date
W

whoopding

How can I return all the properties in the Request.Browser object using a
for each...next loop?
 
I am not sure what you are looking for, but I hope that it will be:


Dim I As Integer
Dim iName, iValue As String
'For I = 0 To Request.Form.Count - 1
For I = 0 To Request.ServerVariables.Count - 1
iName = Request.ServerVariables.AllKeys(I)
iValue = Request.ServerVariables.GetValues(I)(0)
Response.Write("<BR>" & iName & " : " & iValue)
Next


Best regards,

Jorge Serrano Pérez
MVP VB.NET
 
whoopding said:
How can I return all the properties in the Request.Browser object using a
for each...next loop?

Are you referring to 'Request.UserAgent' ('HttpWebRequest.UserAgent')?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top