Context.AddError : Context « Development « ASP.NET Tutorial






<%@ 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>








9.8.Context
9.8.1.Context.User.Identity.Name
9.8.2.Context.AddError
9.8.3.Context.GetConfig
9.8.4.Context.IsCustomErrorEnabled
9.8.5.Context.IsDebuggingEnabled
9.8.6.Context.Items
9.8.7.Context.SkipAuthorization
9.8.8.Context.Timestamp
9.8.9.Context.Trace.IsEnabled