473,657 Members | 2,497 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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(o bject sender, System.EventArg s e)
{
System.Web.Http BrowserCapabili ties browser = Request.Browser ;
string s = "Browser Capabilities\n"
+ "Type = " + browser.Type + "\n"
+ "Name = " + browser.Browser + "\n"
+ "Version = " + browser.Version + "\n"
+ "Major Version = " + browser.MajorVe rsion + "\n"
+ "Minor Version = " + browser.MinorVe rsion + "\n"
+ "Platform = " + browser.Platfor m + "\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.VBScrip t + "\n"
+ "Supports JavaScript = " +
browser.EcmaScr iptVersion.ToSt ring() + "\n"
+ "Supports Java Applets = " + browser.JavaApp lets + "\n"
+ "Supports ActiveX Controls = " + browser.ActiveX Controls
+ "\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:Browse r 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!D ave
Dec 14 '05 #1
1 1863
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*********@sh aws-lawson.com> wrote in message
news:%2******** *******@tk2msft ngp13.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(o bject sender, System.EventArg s e)
{
System.Web.Http BrowserCapabili ties browser = Request.Browser ;
string s = "Browser Capabilities\n"
+ "Type = " + browser.Type + "\n"
+ "Name = " + browser.Browser + "\n"
+ "Version = " + browser.Version + "\n"
+ "Major Version = " + browser.MajorVe rsion + "\n"
+ "Minor Version = " + browser.MinorVe rsion + "\n"
+ "Platform = " + browser.Platfor m + "\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.VBScrip t + "\n"
+ "Supports JavaScript = " +
browser.EcmaScr iptVersion.ToSt ring() + "\n"
+ "Supports Java Applets = " + browser.JavaApp lets + "\n"
+ "Supports ActiveX Controls = " + browser.ActiveX Controls
+ "\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:Browse r 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!D ave

Dec 14 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
1853
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 of the www.micosoft.com. But how can I tell in pixels how far it is from the left side of the client area using JavaScript? If the browser is resized and the text wraps the distance will change. So I need to determine it dynamically. Thanks. --...
3
5303
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. the used OS te determine are: win 95, win 98, win ME, win XP, win NT Thanks for help,
2
1723
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
12465
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
9418
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 example... Thanks, ---Selden McCabe
0
1007
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 case I want to display an error message. Is it possible to do this in server-side code rather than using javascript. I know about HttpBrowserCapabilities, but I see that using Request.Browser.JavaScript returns true if the browser is script-...
2
1326
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 am currently using is <HTML><HEAD .. <script><!- function PageBeforeUnloadCheck( .. if (...)AdministratorStatusReportSummaryForm.TheReportTypes.value ==
9
1635
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
1322
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
8305
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8823
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8726
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8603
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7320
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6163
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4151
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
1944
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.