Request Browser properties.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • whoopding

    Request Browser properties.

    How can I return all the properties in the Request.Browser object using a
    for each...next loop?


  • Jorge Serrano [MVP VB]

    #2
    RE: Request Browser properties.

    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.Co unt - 1
    For I = 0 To Request.ServerV ariables.Count - 1
    iName = Request.ServerV ariables.AllKey s(I)
    iValue = Request.ServerV ariables.GetVal ues(I)(0)
    Response.Write( "<BR>" & iName & " : " & iValue)
    Next


    Best regards,

    Jorge Serrano Pérez
    MVP VB.NET


    "whoopding" wrote:
    [color=blue]
    > How can I return all the properties in the Request.Browser object using a
    > for each...next loop?
    >
    >
    >[/color]

    Comment

    • Cor Ligthert

      #3
      Re: Request Browser properties.

      Whoopding,

      You mean this one?



      I hope this helps,

      Cor


      Comment

      • Herfried K. Wagner [MVP]

        #4
        Re: Request Browser properties.

        "whoopding" <vb@whoopding.c om> schrieb:[color=blue]
        > How can I return all the properties in the Request.Browser object using a
        > for each...next loop?[/color]

        Are you referring to 'Request.UserAg ent' ('HttpWebReques t.UserAgent')?

        --
        M S Herfried K. Wagner
        M V P <URL:http://dotnet.mvps.org/>
        V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

        Comment

        • WhoopDing

          #5
          Re: Request Browser properties.

          Sorry, I meant the Request object Browser property.

          "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
          news:OuiCmDoEFH A.1348@TK2MSFTN GP14.phx.gbl...[color=blue]
          > "whoopding" <vb@whoopding.c om> schrieb:[color=green]
          >> How can I return all the properties in the Request.Browser object using a
          >> for each...next loop?[/color]
          >
          > Are you referring to 'Request.UserAg ent' ('HttpWebReques t.UserAgent')?
          >
          > --
          > M S Herfried K. Wagner
          > M V P <URL:http://dotnet.mvps.org/>
          > V B <URL:http://dotnet.mvps.org/dotnet/faqs/>[/color]


          Comment

          • Herfried K. Wagner [MVP]

            #6
            Re: Request Browser properties.

            "WhoopDing" <vb@whoopding.c om> schrieb:[color=blue]
            > Sorry, I meant the Request object Browser property.[/color]

            The documentation on 'HttpRequest.Br owser' contains a sample that shows the
            properties' values:

            ..NET Framework Class Library -- 'HttpRequest.Br owser' Property
            <URL:http://msdn.microsoft. com/library/en-us/cpref/html/frlrfsystemwebh ttprequestclass browsertopic.as p>

            --
            M S Herfried K. Wagner
            M V P <URL:http://dotnet.mvps.org/>
            V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

            Comment

            Working...