开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜