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

Please install Silverlight or click download to watch video locally.

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.

Presented by Chris Pels

Duration: 14 minutes, 0 seconds

Date: 19 June 2008

Watch    Video   |   Download    Video   |   VB Code    C# Code

Video downloads: WMV  |  Zune  |  iPod  |  PSP  |  MPEG-4  |  3GP

Audio downloads: AAC  |  WMA  |  MPEG-4  |  MPEG-3  |  MPEG-2

Comments : 11

Leave a Comment

IsrarAli : On July 25, 2008 7:59 AM said:

Nice video

IsrarAli : On July 25, 2008 7:59 AM said:

Nice video

asater : On August 21, 2008 11:22 AM said:

Thank you

djafer : On November 12, 2008 7:31 AM said:

Güzel videolar yapıyorsunuz teşekkürler.

djibril_chimere_DIAW : On November 30, 2008 11:18 AM said:

Thanks! Jërëjëf !

syedemad : On December 11, 2008 3:01 AM said:

Hi

It was really nice except one thing, that is about detecting javascripts enabled or not. The EcmaScript property just gives the JavaScript version BUT dosent tell whether the user has disabled javascripts. So is there any way to catch that actually?

Regards,

Priyasadiwala : On December 11, 2008 5:35 AM said:

Nice information

mdmk : On February 13, 2009 7:43 AM said:

Its Very usefull.

Thank sssssssss.

bohunt : On February 13, 2009 5:35 PM said:

Very useful!

Thanks.

haithemara : On May 13, 2009 10:53 AM said:

Nice video. However, it is not very useful. Has anyone used the browserFile.browser file?

Chris, is there anyway we can adjust the difference in apperance of controls between Mozilla and Explorer in asp.net

Thank you.

james yap : On October 05, 2009 6:18 AM said:

thanks for sharing this video.

Leave a Comment

You must be logged in to leave a comment. Click here to log in.

Microsoft Communities