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
Request.Browser gives you the browser details for the current http request.
You can check for Request.UserAgent
. This site has a list of user agent string for different versions of IE
Instead of browser detection, Feature detection should be used, you can use mordernizer for feature detection
精彩评论