AspNetCore.Docs/aspnet/web-forms/videos/how-do-i/how-do-i-detect-browser-cap...

1.5 KiB
Raw Blame History

title author description ms.author manager ms.date ms.topic ms.assetid ms.technology ms.prod msc.legacyurl msc.type
[How Do I:] Detect Browser Capabilities in ASP.NET Web Pages | Microsoft Docs rick-anderson In this video Chris Pels will show how to determine what capabilities a users browser has when viewing pages in an ASP.NET web site. First, learn how to acc... aspnetcontent wpickett 06/19/2008 article aabfeabb-459e-4cfd-b067-44da3bbb291b dotnet-webforms .net-framework /web-forms/videos/how-do-i/how-do-i-detect-browser-capabilities-in-aspnet-web-pages video

[How Do I:] Detect Browser Capabilities in ASP.NET Web Pages

by Chris Pels

In this video Chris Pels will show how to determine what capabilities a user's browser has when viewing pages in an ASP.NET web site. First, learn how to access an instance of the HttpBrowserCapabilities object from the ASP.NET Request object associated with the web page request. Next, see the different information available in the HttpBrowserCapabilities object such as the type of browser and whether the user's browser supports JavaScript and Cookies. Then see an example of how to user this information about the user's browser and determine if a crawler is accessing the web site so it can be redirected to a crawler specific web page.

▶ Watch video (14 minutes)