I am trying to determine if the Internet Explorer browser in ASP.NET Core is server side.
In a previous version of ASP.NET 4 in my cshtml:
@if (Request.Browser.Browser == "IE") {
but in ASP.NET 5 / ASP.NET Core intellisense for Context.Request does not have an option for Browser
I can get a UserAgent, but this seems rather complicated as IE has several line types
Context.Request.Headers["User-Agent"]
for Internet Explorer 11.0 I get
Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko
making it difficult to identify any past, current, or future versions of IE.
asp.net-core asp.net-core-mvc
greay
source share