I’m building a web app that uses a lot of CSS3 and session storage. My goal is to deny users of older browsers by redirecting them to a “we don’t support your browser” page. I’m thinking of using an http module that looks at the incoming request. In the client page I would encode a hidden field that contains the user agent version.
I want this to work for both regular aspx requests and ajax requests to asmx files. What would a good method to do this be?
You may use HttpRequest.Browser property to detects browser type in ASP.NET and have a look at article by Scott Mitchell – Performing Browser Detection Using ASP.NET.