By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,827 Members | 2,267 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,827 IT Pros & Developers. It's quick & easy.

Determine client browser

P: n/a
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
Dec 14 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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)
"Dave Harrington" <dh*********@shaws-lawson.com> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
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

Dec 14 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.