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