Issue
I have an application which uses mobile views and desktop views as different html pages. Now I am moving that to Asp.Net core. I am not thinking about Bootstrap due to some technical reasons. I have to detect the request is from Mobile or not in StartUp to load respective Layout page. How can I achieve that ? Looking for something similar to IsMobileDevice. Already tried MvcDeviceDetector 0.1.0-t00349acaa. It didn’t worked as I am using .net version 4.6.1.
Solution
You can use the manual method outlined here:
https://stackoverflow.com/a/13086894/1419970
Or you can use this library: http://www.nuget.org/packages/51Degrees.mobi/3.2.10.3-beta
Both will do for you.
Answered By – MoustafaS
Answer Checked By – Cary Denson (BugsFixing Admin)