Is there ASP.NET Razor code that I can use to determine if someone is browsing my site using an HTML5 compatible browser? Or if not Razor, maybe JavaScript or even server side C# code?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is no such thing as an “HTML5 Compatible Browser.” HTML5 consists of a lot of features, most of which have a (Javascript) way to detect that they are available and working.
Modernizr is a useful tool to help you determine which features are available. There are others out there, and it’s not hard to roll your own for specific features.