The best browser detection solution in ASP.NET 4.0

前端 未结 5 948
后悔当初
后悔当初 2020-12-29 06:08

I googled this topic and I came across with three different ways to configure browser capabilities: browscap.ini, browserCaps element in web.config and .browser files in App

5条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-29 06:16

    The best answer is feature detection, not browser detection! This is particularly true in the day where Firefox & Chrome are putting out releases ever few months and mobile browser use is growing. Use Modernizr (http://Modernizr.com) or an equivalent library to detect the features you are interested in.

提交回复
热议问题