I am looking how to detect IE7 and IE8 browser in MVC4, how to do that?
I find the property Request.Browser but it do not gives any information about browser.
I advise you to use Contains method on Request.UserAgent
if (Request.UserAgent.Contains("MSIE 7.0"))
{
// Internet Explorer 7
}
else if (Request.UserAgent.Contains("MSIE 8.0"))
{
// Internet Explorer 8
}