how to detect if a client PC is a MAC

  • Thread starter Thread starter Joe Abou Jaoude
  • Start date Start date
J

Joe Abou Jaoude

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 ?
 
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");
 
Back
Top