JumpMaster
JumpMaster

Reputation: 21

Determining the clients device (PC or Mobile)

I am returing to website development and I want my work to be as global as possible. When a web surfer arrives at my site, is there a way to determine whether he/she is surfing with a PC or mobile phone and disply the content accordingly? Or would it be better to build responsive sites using CSS?

Upvotes: 1

Views: 202

Answers (2)

Pawan
Pawan

Reputation: 1075

You can use Request.UserAgent because UserAgent gets the raw user agent string of the client browser

Upvotes: 0

Gaz Winter
Gaz Winter

Reputation: 2989

Take a look at the following questions, looks like there could be quite a lot of useful information in there for you:

What is the best way to detect a mobile device in jQuery?

How to detect a mobile device with JavaScript?

Auto detect mobile browser (via user-agent?)

Upvotes: 3

Related Questions