Reputation: 6509
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
Reputation: 4130
Instead of browser detection, Feature detection should be used, you can use mordernizer for feature detection
Upvotes: -3
Reputation: 108957
You can check for Request.UserAgent
. This site has a list of user agent string for different versions of IE
Upvotes: 6
Reputation: 6747
Request.Browser gives you the browser details for the current http request.
Upvotes: 9