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.
You can use the manual method outlined here:
Or you can use this library: http://www.nuget.org/packages/51Degrees.mobi/18.104.22.168-beta
Both will do for you.
Answered By – MoustafaS
Answer Checked By – Cary Denson (BugsFixing Admin)