<%@ 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>
|