<%@ Page Language="vb" %>
<html>
<head>
<script runat="server">
Sub Page_Load()
Try
Throw New HttpException("Threw an error from Page_Load", 100)
Catch HttpEx As HttpException
Message.Text = "ERROR:</br>"
Message.Text &= "Message: " & HttpEx.Message & "</br>"
Message.Text &= "Error Code: " & HttpEx.ErrorCode & "</br>"
End Try
End Sub
</script>
</head>
<body>
<asp:label id="Message" forecolor="red" runat="server"/>
</body>
</html>
|