Board index » Visual Studio » Request.Browser.MajorVersion returns wrong version
|
StanislavDergatch
|
Request.Browser.MajorVersion returns wrong version
Visual Studio30
I have an application that checks for browser, version and active X enabled. It uses the result for a simple if then. The issue I have is that Request.Browser.MajorVersion is returning the wrong value. I was not getting the result I wanted (no IE browser was version>= 5) even when the browser was version 6. I tried from 2 machines, both running IE 6 with all patches installed. For some reason Request.Browser.MajorVersion returns this as Major Version 4. All other values are correct (IE: and Active X enabled). Is there a setting somewhere in the project which could make this return the wrong value? (I was wondering about browser compatibility settings, where they are and if they could do this?) The actual line is: If (Request.Browser.Browser.ToUpper().IndexOf("IE")>= 0 And Request.Browser.MajorVersion>= 5 And Request.Browser.ActiveXControls = True) Then Thanks. - |
