Browser supports cookie? (VB.net) : Browser Capabilities « Request « ASP.Net






Browser supports cookie? (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.Cookies Then
        lblMessage.Text = "Your browser supports cookies!"
    Else
        lblMessage.Text = "You browser does not " _
            & "support cookies!"
    End If
End Sub
</SCRIPT>
<HTML>
<HEAD>
<TITLE>Browser Cookies</TITLE>
</HEAD>
<form runat="server">
<asp:label 
    id="lblMessage" 
    font-size="12pt"
    font-name="Tahoma"
    runat="server"
/>
</form>
</BODY>
</HTML>
           
       








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.Is 16 / 32 bits window based? (VB.net)
6.Get Browser Name (VB.net)
7.Http Browser Capabilities (VB.net)