473,395 Members | 1,885 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Determine client browser

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
1 1838
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: George Hester | last post by:
Say I have this in a web page: <center><a href="http://www.microsoft.com">www.microsoft.com</a></center> I can use CSS, the DOM and\or JavaScript to determine the width style.innerHTML.length...
3
by: lucpustjens | last post by:
Hello, I want te determine the client operating system, because I need to kno the default cookie directory. If there is a way to determine the cooki directory directly, than it is also good. ...
2
by: Marcia Gulesian | last post by:
How can I determine the version of Safari (for example, 1.0.2 or 1.2.2) that's downloaded a document?
88
by: Mike | last post by:
Is there a way to determine what a user's default email client is? I read a post from 3 years ago that said no. I guess I'm hoping something has come along since then.
4
by: Selden McCabe | last post by:
Does anyone know how to determine the client's MAC address from within ASP.Net? I suppose it would have to be java or vb script running on the browser, but I haven't been able to find an...
0
by: Roz Lee | last post by:
I need to determine whether the client browser has disabled the Active Scripting option in their browser security settings as they will be unable to log in to my asp.net site if they have, in which...
2
by: Michael SL | last post by:
When a client requests to leave a Web Page, I want the web page to check for a certain condition. If that condition is met, I want to prompt the user to make sure they want to leave The method I...
9
by: Joris De Groote | last post by:
Hi, I'm looking for a javascript that can give me the screensize of a computer. Can anyone help me? Thanks
6
by: Alexander Vasilevsky | last post by:
How do you determine (on the client, on the server) that the visitor leave the site? http://www.alvas.net - Audio tools for C# and VB.Net developers
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.