<%@ Page Language="vb" EnableSessionState="false" %>
<html>
<head>
<script runat="server">
Sub Page_Load()
Try
Session("foo") = "Foo"
Catch HttpEx As HttpException
myMessage.Text = "ERROR:</br>"
myMessage.Text &= "myMessage: " & HttpEx.Message & "</br>"
myMessage.Text &= "Source: " & HttpEx.Source & "</br>"
End Try
End Sub
</script>
</head>
<body>
<asp:label id="myMessage" forecolor="red" runat="server"/>
</body>
</html>
|