Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Detection for mobile device
Message
De
28/12/2015 19:12:03
 
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
OS:
Windows 8.1
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01629341
Message ID:
01629350
Vues:
35
>I would advise against trying to do server side device detection. Build your UI so that it can adapt to device size or use media queries on the client to decide how style content differently.
>
>There are a million combinations of user agents and if you skip new user agents you are bound to piss off people in the future.
>
>And if you really do want to do this there are libraries natively in .NET as well as for JavaScript that let you get reliable and updated browser detection. If you use anyhting use that so the burden of keeping your user agents updated isn't on your code.
>
>These days the only browser detection I ever do is to check for old version of IE (pre 10). Everything else is detectable with other means more easily and usually it's not the device you care about by the size of the screen (device-width).

Everything is controlled on the server. This is only for the setup of a single properly.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform