<%@ Page Language="vb" %>
<html>
<head>
<script runat="server">
Sub Page_Load()
If Not Session("foo") Is Nothing Then
Session.Remove("foo")
Message.Text = "Item 'foo' was removed."
Else
Message.Text = "Item 'foo' does not exist."
End If
End Sub
</script>
</head>
<body>
<form runat="server">
<asp:label id="Message" runat="server"/>
</form>
</body>
</html>
|