user2721399
user2721399

Reputation: 11

How to determine in ASP.NET C# that a request is coming from a PC or a mobile device

How to determine in ASP.NET C# that a request is coming from personal computer or a mobile device. How is this possible?

Upvotes: 1

Views: 637

Answers (2)

Ramakrishna.p
Ramakrishna.p

Reputation: 1201

51Degrees.mobi components for mobile web development. It’s provided as a .NET open source class library that detects mobile devices and browsers, enhancing the information available to .NET programmers

refer more about

http://51degrees.codeplex.com/

answered posts

Mobile Device Detection in asp.net

http://www.codeproject.com/Articles/34422/Detecting-a-mobile-browser-in-ASP-NET

Upvotes: 1

softilium
softilium

Reputation: 175

For example, you can analyze property Request.Browser.Platform

Going in deep, you can define your own browser detection rules in App_Browsers for your app.

Upvotes: 1

Related Questions