Context.Error : Context « Session Cookie « ASP.Net






Context.Error

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








Related examples in the same category

1.Context.Items
2. Context.Items.Contains
3.Context.Timestamp
4.Context.SkipAuthorization
5.Context.IsDebuggingEnabled
6.Context.IsCustomErrorEnabled
7.Context.AddError
8.Context.Trace.IsEnabled
9.Context.User.Identity.IsAuthenticated
10.Context.GetConfig