<%@ Page Language="vb" EnableSessionState="false" %>
<html>
<head>
<script runat="server">
Sub Page_Load()
Try
Session("foo") = "Foo"
Catch HttpEx As HttpException
Message.Text = "ERROR:</br>"
Message.Text &= "Message: " & HttpEx.Message & "</br>"
Message.Text &= "Help Link: " & HttpEx.HelpLink & "</br>"
Message.Text &= "Error Code: " & HttpEx.ErrorCode & "</br>"
Message.Text &= "Source: " & HttpEx.Source & "</br>"
Message.Text &= "Stack Trace: " & HttpEx.StackTrace & "</br>"
Message.Text &= "Target Site: " & HttpEx.TargetSite.ToString() & "</br>"
Message.Text &= "Http Error Message: " & HttpEx.GetHtmlErrorMessage() & "</br>"
Message.Text &= "Http Error Code: " & HttpEx.GetHttpCode() & "</br>"
Message.Text &= "String: " & HttpEx.ToString() & "</br>"
End Try
End Sub
</script>
</head>
<body>
<asp:label id="Message" forecolor="red" runat="server"/>
</body>
</html>
|