michaelmcgurk
michaelmcgurk

Reputation: 6509

Check if IE Browser - .NET

I have my SiteMaster.cs file and I'd like to check if the client browser is using IE to access my site.

Is there an easy way to do this?

Thank you

Michael

Upvotes: 6

Views: 13491

Answers (3)

taher chhabrawala
taher chhabrawala

Reputation: 4130

Instead of browser detection, Feature detection should be used, you can use mordernizer for feature detection

Upvotes: -3

Bala R
Bala R

Reputation: 108957

You can check for Request.UserAgent. This site has a list of user agent string for different versions of IE

Upvotes: 6

David Bonnici
David Bonnici

Reputation: 6747

Request.Browser gives you the browser details for the current http request.

Upvotes: 9

Related Questions