Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8252013
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T00:25:34+00:00 2026-06-08T00:25:34+00:00

What would be the difference (if any) and advantages/disadvantages between these two properties used

  • 0

What would be the difference (if any) and advantages/disadvantages between these two properties used to determine the user agent?

Dim strUserAgt as String
userAgent = Request.userAgent

vs.

Dim strUserAgt as String = Request.ServerVariables("HTTP_USER_AGENT")
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T00:25:36+00:00Added an answer on June 8, 2026 at 12:25 am

    Source: How to determine browser type in server-side code without the BrowserType object in ASP.NET

    In ASP.NET, you can access the Request.ServerVariables collection or
    use the new Request.UserAgent property to retrieve the HTTP_USER_AGENT
    header value.

    There are no difference, both will retrieve same thing HTTP_USER_AGENT header value.

    Check Request.ServerVariables Collection and IIS Server Variables if you want to dig it in deep. These server variables collection values somewhat depend ond the IIS version also.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to know is there any difference in performance between these two
Would you please explain me the difference between these two CSS classes syntax: .element
If I extend a component like Form in Vaadin, would be any difference between
Any idea whats the difference between the two commands below? Command: manage.py runfcgi method=threaded
As far as I can tell I wouldn't think it would make any difference
How would I use nHibernate,configured by fluent nhibernate if it makes any difference, to
what would be the difference between this class Class1 { public string prop1 {
Can you you tell me what would be the difference between of the ID:
I would like to know what is the difference between Sleep mode and Deep
Possible Duplicate: B- trees, B+ trees difference What are the advantages/disadvantages of BTree+ over

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.