Check if IE Browser - .NET
13,339
Solution 1
You can check for Request.UserAgent
. This site has a list of user agent string for different versions of IE
Solution 2
Request.Browser gives you the browser details for the current http request.
Author by
michaelmcgurk
BY DAY: Alt-Rock Ninja Cowgirl at Veridian Dynamics. BY NIGHT: I write code and code rights for penalcoders.example.org, an awesome non-profit that will totally take your money at that link. My kids are cuter than yours. FOR FUN: C+ Jokes, Segway Roller Derby, NYT Sat. Crosswords (in Sharpie!), Ostrich Grooming. "If you see scary things, look for the helpers-you'll always see people helping."-Fred Rogers
Updated on June 25, 2022Comments
-
michaelmcgurk almost 2 years
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