473,569 Members | 2,701 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Find out OS/Browser/....

We want to keep track of what OS/Browser people are using for our website.
How can I find that out so that I can write it to a DB ? I know how to get
it into the DB; I just need to know how to get that stuff in .Net.

Thanks.

J.
May 14 '07 #1
5 3612
OJ
On 14 May, 16:15, "Mufasa" <j...@nowhere.c omwrote:
We want to keep track of what OS/Browser people are using for our website.
How can I find that out so that I can write it to a DB ? I know how to get
it into the DB; I just need to know how to get that stuff in .Net.

Thanks.

J.
Hi,
try the Request.Browser object....

a bit of google goes a long way...

O

May 14 '07 #2
Hello Mufasa,

See HttpRequest.Bro wser and HttpRequest.Use rAgent;

---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

MWe want to keep track of what OS/Browser people are using for our
Mwebsite. How can I find that out so that I can write it to a DB ? I
Mknow how to get it into the DB; I just need to know how to get that
Mstuff in .Net.
M>
MThanks.
M>
MJ.
M>
May 14 '07 #3
Browser you can find you by reading User_Agent from ServerVaraibles .

Usually staff like that is done with Javascript using Navigator object.
first page that outputted to browser has a JavaScript code that collects all
that info and request a transparent pixel passing all that info as a
parameter.

<script>
....get all info into sVar.....
document.write( "<img src=collectdata .aspx?par=" + sVar + " border=0>");
</script>

Good luck. You can look at pretty much any statistical/free counter there
available. They almost all have code to collect visitors data.
GoogleAnalytic for example.

George.

"Mufasa" <jb@nowhere.com wrote in message
news:%2******** ********@TK2MSF TNGP04.phx.gbl. ..
We want to keep track of what OS/Browser people are using for our website.
How can I find that out so that I can write it to a DB ? I know how to get
it into the DB; I just need to know how to get that stuff in .Net.

Thanks.

J.

May 14 '07 #4
Thanks for the info. Problem with google - if you don't know what your
looking for, it can take forever to find anything.

Frequently I've had it where I post a message here and then start googling.
And by the time I find something even close to appropriate, somebody has
already posted here.

But thanks again for the info.

J.

"OJ" <of****@gmail.c omwrote in message
news:11******** **************@ e65g2000hsc.goo glegroups.com.. .
On 14 May, 16:15, "Mufasa" <j...@nowhere.c omwrote:
>We want to keep track of what OS/Browser people are using for our
website.
How can I find that out so that I can write it to a DB ? I know how to
get
it into the DB; I just need to know how to get that stuff in .Net.

Thanks.

J.

Hi,
try the Request.Browser object....

a bit of google goes a long way...

O

May 14 '07 #5
Save the following code as "detectBrowser. aspx" and run it :

detectBrowser.a spx:
------------------------------
<%@ Page Language="VB" Trace = "false" EnableViewState = "false" EnableSessionSt ate = "false" Debug =
"false" %>

<script language="VB" runat="server">

Sub Page_Load(sende r as Object, e as EventArgs)
BrowserName.Tex t = Request.Browser .Type & ", " & Request.Browser .Platform

BrowserData.Tex t = "Type = " & Request.Browser .Type & "<br>"
BrowserData.Tex t &= "Name = " & Request.Browser .Browser & "<br>"
BrowserData.Tex t &= "Version = " & Request.Browser .Version & "<br>"
BrowserData.Tex t &= "Major Version = " & Request.Browser .MajorVersion & "<br>"
BrowserData.Tex t &= "Minor Version = " & Request.Browser .MinorVersion & "<br>"
BrowserData.Tex t &= "Platform = " & Request.Browser .Platform & "<br>"
BrowserData.Tex t &= "Is Beta = " & Request.Browser .Beta & "<br>"
BrowserData.Tex t &= "Is Crawler = " & Request.Browser .Crawler & "<br>"
BrowserData.Tex t &= "Is AOL = " & Request.Browser .AOL & "<br>"
BrowserData.Tex t &= "Is Win16 = " & Request.Browser .Win16 & "<br>"
BrowserData.Tex t &= "Is Win32 = " & Request.Browser .Win32 & "<br>"
BrowserData.Tex t &= "Supports Frames = " & Request.Browser .Frames & "<br>"
BrowserData.Tex t &= "Supports Tables = " & Request.Browser .Tables & "<br>"
BrowserData.Tex t &= "Supports Cookies = " & Request.Browser .Cookies & "<br>"
BrowserData.Tex t &= "Supports VB Script = " & Request.Browser .VBScript & "<br>"
BrowserData.Tex t &= "Supports JavaScript = " & Request.Browser .JavaScript & "<br>"
BrowserData.Tex t &= "Supports EcmaScript version " & Request.Browser .EcmaScriptVers ion.ToString() &
"<br>"
BrowserData.Tex t &= "Supports Java Applets = " & Request.Browser .JavaApplets & "<br>"
BrowserData.Tex t &= "CDF = " & Request.Browser .CDF & "<br>"
BrowserData.Tex t &= "MSDomVersi on = " & Request.Browser .MSDomVersion.T oString() & "<br>"
BrowserData.Tex t &= "SupportsCs s = " & Request.Browser .SupportsCss.To String() & "<br>"
BrowserData.Tex t &= "W3CDomVers ion = " & Request.Browser .W3CDomVersion. ToString() & "<br>"
BrowserData.Tex t &= "Http_User_Agen t = " & Request.ServerV ariables("http_ user_agent") & "<br>"
End Sub
</script>

<html>
<body>

Your browser is: <asp:literal id="BrowserName " runat="server" />
<p>
<b><u>Here is part of what was detected about your browser's capabilities:</u></b><br />
<asp:literal runat="server" id="BrowserData " />

</body>
</html>

-------------------

HTH...


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== ========
"Mufasa" <jb@nowhere.com wrote in message news:%2******** ********@TK2MSF TNGP04.phx.gbl. ..
We want to keep track of what OS/Browser people are using for our website. How can I find that out
so that I can write it to a DB ? I know how to get it into the DB; I just need to know how to get
that stuff in .Net.

Thanks.

J.

May 14 '07 #6

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

Similar topics

4
3195
by: rossum | last post by:
I am using Visual C# Express Beta, though I suspect that my question has more to do with .NET than with C# specifically. I have written a form with a Web Browser in it. At the top I have a button bar. What I want to do is to have a button which searches for user-entered text in the HTML document in the Web Browser. When I run my form I...
3
4196
by: HorseGeek | last post by:
I can't find a cookie that my code is writing. The behavior of my webpages indicates that the cookie IS being written SOMEPLACE. However, I can't find it. My client does not want the code going into production unless they can actually see where the cookie is being written. They are concerned that the cookie may stay around after they...
2
6527
by: rossum | last post by:
I am using Visual C# Express Beta, though I suspect that my question has more to do with .NET than with C# specifically. I have written a form with a Web Browser in it. At the top I have a button bar. What I want to do is to have a button which searches for user-entered text in the HTML document in the Web Browser. When I run my form I...
27
4595
by: one man army | last post by:
Hi All- I am new to PHP. I found FAQTS and the php manual. I am trying this sequence, but getting 'no zip string found:'... PHP Version 4.4.0 $doc = new DomDocument; $res = $doc->loadHTMLFile("./aBasicSearchResult.html"); if ( $res == true ) { $zip = $doc->getElementById('zipRaw_id')->value; if ( 0 != $zip ) {
17
2630
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I find the size of a browser window? ----------------------------------------------------------------------- Where supported in NN: (>NN4.0) var winWidth = window.innerWidth; var winHeight = window.innerHeight; Where supported in IE: (>IE4.0)
1
4055
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I find the size of the window/browser canvas area? ----------------------------------------------------------------------- While it is often asked about window size, what is more relevant is the "canvas area" of the browser. Where supported in NN:...
16
4996
by: Lastwebpage | last post by:
Hello, I am little surprised about the following: <a href="#" ... I found some lines about the href tag for a site should point to an name or in XHTML to an ID, but in both cases this seems to be not valid name="#" or id=""... And I wonder why the online validator allow this in all cases.DOCUMENT types.
4
7248
by: Gordon | last post by:
Just a quickie. Is there a way to cause a browser to open it's find... dialogue in response to an event, say a click on a button? The idea is that there's a list of addresses that a client has used for delivery in the past, but in some cases this list can be rather long, and a lot of clients don't know about the browser find in page...
5
4527
by: YaoBao | last post by:
Is any ColdFusion script I can put on my webpage that will create a search bar so people can type keywords to match it on the current page in my website? It will be exactly like the finder search bar that comes with your browser window, IE; click edit, then find on this page, which brings up the search box. I know that JavaScript can do this. I...
0
7697
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8120
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...
1
7672
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7968
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...
0
6283
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...
1
5512
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...
0
5219
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...
0
3640
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.