Just wondering what browser type the VB.NET reads as when it visits a webpage. For instance on my website it shows a break down of all the different browsers that accessed my site.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
You don’t provide much context to your question, but I assume that you’re talking about the User Agent string that’s sent when you use the
WebBrowsercontrol built into the .NET Framework.Because that control just uses Internet Explorer to render the page, you’ll see a User Agent string very similar to what you’d find if you visited the page using IE on the same computer. The IE string generically reports itself as
Mozilla/4.0 compatible, but also gives the specific version of MSIE and lists the current version of Windows.For example, running under the 64-bit version of Windows Server 2008 R2 with version 4.0 of the .NET Framework, I’m identified as follows whenever I surf to pages from the
WebBrowsercontrol:By contrast, Internet Explorer on the same machine displays this as the User Agent string:
The only difference being that the .NET
WebBrowsercontrol reports itself as Internet Explorer version 7.0 (MSIE 7.0), instead of version 8.0 that is installed on the machine. This is because the control uses the IE 7 rendering engine, rather than the one in IE 8, for compatibility reasons. If you want, you can change this by editing a registry value.To run a
WebBrowsercontrol in IE8 Standards Mode, use the following new value into the registry:To run in IE7 Standards Mode, use the following registry value: