Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 838
michaelmcgurk Avatar asked May 25 '11 14:05

michaelmcgurk


Video Answer


2 Answers

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

like image 73
David Bonnici Avatar answered Sep 30 '22 06:09

David Bonnici


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

like image 31
Bala R Avatar answered Sep 30 '22 05:09

Bala R