Make sure IE Browser-.NET

I have a SiteMaster.cs file and I want to check if the browser of the client uses IE to access my site.

Is there an easy way to do this?

thanks

Michael

+6
source share
3 answers

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

+5
source

Request.Browser provides browser data for the current http request.

+8
source

Instead of detecting the browser, you should use the object detection function, you can use the mordernizer to detect functions

-3
source

Source: https://habr.com/ru/post/889008/


All Articles