How to know if a user is accessing a website using Mobile Phone vs Computer
I have an MVC application written in C # that supports Mobile view. I would like to record statistics on the number of users accessing a website from a mobile phone (could be any phone) and a computer (assuming a PC / Mac), is there a way to do this?
Additional information: I need to display these statistics for users on a website.
+3
CJ
source
to share
1 answer
HttpCapabilitiesBase.IsMobileDevice
Gets a value that indicates whether the browser is a recognized mobile device. (Source - MSDN )
-1
Krishna Kolamala
source
to share