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

how to detect if a client PC is a MAC

P: n/a


hi,
in my web app, I need to detect if a client computer is a Mac.
i thought to use Request.Browser.Platform, however i don't have a Mac to
test on it, so i have no idea what I'll get in result.
can anyone help ?
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
From MSDN description of the Platform property:

"Some possible Platform values are: Unknown, Win95, Win98, WinNT (which
includes Windows 2000), Win16, WinCE, Mac68K, MacPPC, UNIX, and WebTV."

I think I would check to see if the value starts with "Mac".
ex.
bool bIsMac = Request.Browser.Platform.StartsWith("Mac");

--
Ben Lucas
Lead Developer
Solien Technology, Inc.
www.solien.com

"Joe Abou Jaoude" <an*******@devdex.com> wrote in message
news:uM*************@TK2MSFTNGP14.phx.gbl...


hi,
in my web app, I need to detect if a client computer is a Mac.
i thought to use Request.Browser.Platform, however i don't have a Mac to
test on it, so i have no idea what I'll get in result.
can anyone help ?
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Jul 21 '05 #2

P: n/a

yes thanx i think this will work
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.