Skip to main content
3 de 3
Modifiquei o codigo para atender 100% a pergunta.

Seguindo este link para obtendo as informações :

C#

System.Web.HttpBrowserCapabilities browser = Request.Browser;

string pattern = @"ie|internet explorer|chrome";

MatchCollection matches = Regex.Matches(browser.Browser, pattern, RegexOptions.IgnoreCase)

if(matchs.Count == 0 And browser.Version < 9){
    Return View("IncompativelAgent");
}

VB

    Dim regex As Regex = New Regex("ie|internet explorer|chrome", RegexOptions.IgnoreCase)
    Dim match As Match = regex.Match(Request.Browser.Browser)
    If (Not match.Success Or (match.Success And Request.Browser.MajorVersion < 9)) Then
        Return View("IncompativelAgent")
    End If

Obs

Não sou conhecedor, montem com base em pesquisas.

Links

How to: Detect Browser Types and Browser Capabilities in ASP.NET Web Forms
Check Browser version and name (VB.net)
VB.NET Regex.Match Function Examples

Guilherme Lautert
  • 15,7mil
  • 8
  • 50
  • 116