Thank you for that sample. I think the reason for it returning Beta=False is
because of where it gets the properties, which is from a section of the
Web.config file called browserCaps which is matched against the User-Agent
string using regular expressions (or something like that, but I know it
doesn't send all the properties individually). I personally think that
Microsoft should do one of the following as far as getting the
Request.Browser object:
1. Create a different class that accesses a web service that they create to
determine the property values
OR
2. Give periodic updates for the <browserCapssection of the Web.config
file (they give periodic updates for Windows, Office, and several other
pieces of software, why not for this?)
But rather than complain about it, I'm happy for now since if your sample is
correct and the .Browser property returns "IE" I don't need to make any
changes to my code anyway. Thanks.
--
Nathan Sokalski
nj********@hotmail.com http://www.nathansokalski.com/
"Mark Rae" <ma**@markNOSPAMrae.comwrote in message
news:uD**************@TK2MSFTNGP04.phx.gbl...
"Nathan Sokalski" <nj********@hotmail.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
Firstly, please don't cross-post...
>If Me.Request.Browser.Browser.ToUpper() = "IE" Then
'Code to use for Internet Explorer browsers
Else
'Code to use for browsers other than Internet Explorer
End If
In what ways would I need to modify this to make it work for IE7 as well?
A five-second inspection of the Request.Browser class would have revealed
all its other properties...
My Beta3 copy of IE7 (7.0.5450.4) returns the following values (in
parentheses) to the Request.Browser object:
.ActiveXControls (True)
.AOL (False)
.BackgroundSounds (True)
.Beta (False)
.Browser (IE)
.CDF (False)
.ClrVersion (2.0.50727)
.Cookies (True)
.Crawler (False)
.EcmaScriptVersion (1.2)
.Frames (True)
.JavaApplets (True)
.JavaScript (True)
.MajorVersion (7)
.MinorVersion (0)
.MSDomVersion (7.0)
.Platform (WinXP)
.Tables (True)
.Type (IE7)
.VBScript (True)
.Version (7.0)
.W3CDomVersion (1.0)
.Win16 (False)
.Win32 (True)
I'm slightly puzzled about the .Beta property, which I would have expected
to return True instead of False...