Get Browser Name (VB.net) : Browser Capabilities « Request « ASP.Net






Get Browser Name (VB.net)

<%@ Page Language=VB Debug=true %>
<script runat=server>
Sub Page_Load(ByVal Sender as Object, ByVal E as EventArgs)
    Dim BCaps As HttpBrowserCapabilities
    BCaps = Request.Browser
    If BCaps.Browser = "IE" Then
        Response.Redirect("http://www.java2s.com")
    ElseIf BCaps.Browser = "Netscape" Then
        Response.Redirect("http://www.java2s.com")
    Else
        Response.Redirect("http://www.java2s.com")
    End If
End Sub
</SCRIPT>
           
       








Related examples in the same category

1.Browser supports ActiveX Controls? (VB.net)
2.Browser support Java? (VB.net)
3.Browser supports Javascript (VB.net)
4.Browser support VB script (VB.net)
5.Browser supports cookie? (VB.net)
6.Is 16 / 32 bits window based? (VB.net)
7.Http Browser Capabilities (VB.net)