<%@ Page Language="vb" %>
<html>
<head>
<script runat="server">
Sub Page_Load()
Try
Context.AddError(New Exception("Test"))
Finally
Message.Text = "Context.Error.ToString() is " & _
Context.Error.ToString()
Context.ClearError()
End Try
End Sub
</script>
</head>
<body>
<asp:label id="Message" runat="server"/>
</body>
</html>
|