exception.aspx 528 B

1234567891011121314151617181920212223242526
  1. <%@ Page language="c#" AutoEventWireup="false" %>
  2. <script runat="server">
  3. protected override void OnLoad( EventArgs args )
  4. {
  5. base.OnLoad(args);
  6. // System.Theading.Thread.Abort (); // this won't call OnError.
  7. throw new Exception();
  8. }
  9. protected override void OnError(EventArgs e)
  10. {
  11. base.OnError(e);
  12. HttpContext.Current.Response.Redirect( "error.aspx" );
  13. }
  14. </script>
  15. <html>
  16. <head>
  17. <title>Mono Bugs</title>
  18. </head>
  19. <body id="body">
  20. <form method="post" runat="server" id="form">
  21. </form>
  22. </body>
  23. </html>