Register  |  Login




Advertisement

Start Your Own Q&A Site

Create your own Q&A site easily, allowing you to quickly grow a new community around any subject matter or generate new organic traffic for your existing website.

Question

Status: Open Points: 125 Time: 06:01 - Dec 02, 2009  

dustPuppy

How to get accurate browser detection in asp.net?

Hi,

I am using asp.net's BrowserCapabilities to detect which browser/version and platform the user was making the request from.

But it's not completely accurate and I was wondering whether there exists a way to keep this updated and or enhance it so that it covers more cases.

For example the UserAgent:

Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.15) Gecko/2009102918 CentOS/3.0.15-3.el5.centos Firefox/3.0.15

is interpreted as being

Browser: Mozilla 1.9.0.15

Platform: UNIX

Also I had an issue with MacOS not being recognized as a platform at all.

Is there a more constent way of handling this without having to use third party tools?

Regards,
dustPuppy

Answer Discussion
Tutorials

 

jgivoni

Date:: Dec 03, 2009

Time:: 03:42

I don't really know the answer, but I think that in principle reliable browser detection based on the UserAgent string is impossible since the browsers can decide (and have decided) to put anything they like in the UserAgent string if they think it will have any benefit to them while surfing.

I reality, of course, it's more or less possible to keep up to date with what different browsers report, hence your request for an updated detection routine.

At the same time I was thinking that the object you refer to is called BrowserCapabilities which implies that you might not always be as interested in make and model of a specific browser, but of the capabilities of that browser, which is an entirely different thing.

In your case I'm sure you have a reason to want to know the exact browser and OS, and I would like to hear what that reason might be.

Thanks, and I hope you find your answer!
Jakob

admin

Date:: Jan 18, 2010

Time:: 06:47

The question looks to be abandoned by the user who asked it. If no action is taken within 2 days, a Quomon Moderator will consider closing the question and distributing the points.

The Quomon Team

Answer this Question

New User

Email:

Upon submission of this form, you will automatically be registered as a Quomon user and we will send your login information to this address

Registered User

Username:

Password:

Forgot Your Password?

Tutorials cannot be submitted until the Answer Discussion is complete.

Submit answers in the Answer Discussion area

Ask a Question

Have a new question? Ask!

You have 100 characters to use



Top Experts

View More

Rank

Expert

Points

1.

nidhi

10279

2.

oracleofDelphi

6493

3.

rcastagna

5596

4.

LAGM

4848

5.

PeterNZ

3487

6.

gonzalo

2840

7.

Mason

2770

8.

jgivoni

2303

9.

xarcus

1820

10.

Anpanman

917

Become an Expert

Register today to share your knowledge with the community and be recognized and rewarded for your contributions.


Register Here




"Psst, Quomon is a great site. Pass it on."     Tell a Friend  |   Link To Us  |   Save to Delicious  |   Digg! Digg it



Language Options

English:

www.quomon.com

Español:

www.quomon.es