Determine client browser

D

Dave Harrington

Greetings all -

We have a client who uses Lotus Notes as their default e-mail. The version
of Lotus they use can run internet explorer windows within Lotus. I'd like
to find if they are launching our web application through lotus notes or
not.

I've stumbled across the following code:

private void Button1_Click(object sender, System.EventArgs e)
{
System.Web.HttpBrowserCapabilities browser = Request.Browser;
string s = "Browser Capabilities\n"
+ "Type = " + browser.Type + "\n"
+ "Name = " + browser.Browser + "\n"
+ "Version = " + browser.Version + "\n"
+ "Major Version = " + browser.MajorVersion + "\n"
+ "Minor Version = " + browser.MinorVersion + "\n"
+ "Platform = " + browser.Platform + "\n"
+ "Is Beta = " + browser.Beta + "\n"
+ "Is Crawler = " + browser.Crawler + "\n"
+ "Is AOL = " + browser.AOL + "\n"
+ "Is Win16 = " + browser.Win16 + "\n"
+ "Is Win32 = " + browser.Win32 + "\n"
+ "Supports Frames = " + browser.Frames + "\n"
+ "Supports Tables = " + browser.Tables + "\n"
+ "Supports Cookies = " + browser.Cookies + "\n"
+ "Supports VBScript = " + browser.VBScript + "\n"
+ "Supports JavaScript = " +
browser.EcmaScriptVersion.ToString() + "\n"
+ "Supports Java Applets = " + browser.JavaApplets + "\n"
+ "Supports ActiveX Controls = " + browser.ActiveXControls
+ "\n";
TextBox1.Text = s;
}I also set up a test page and went to it through Lotus Notes' browser and
it spat out the following feedback:Browser Capabilities Type = IE6 Name = IE
Version = 6.0 Major Version = 6 Minor Version = 0 Platform = WinXP Is Beta =
False Is Crawler = False Is AOL = False Is Win16 = False Is Win32 = True
Supports Frames = True Supports Tables = True Supports Cookies = True
Supports VBScript = True Supports JavaScript = 1.2 Supports Java Applets =
True Supports ActiveX Controls = True As you can see, there is no indication
that the browser is going through Lotus. Can anyone offer any
advice?Thanks!Dave
 
B

Bruce Barker

by default when an app hosts IE, there is no way to know. the app can modify
the agent string if its wants to identify itself (actually may browser lie
and say their IE when their not). the agent string is not really reliable.

-- bruce (sqlwork.com)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top