refactored thread abort handling
[mono.git] / mcs / class / System.Web / Test / mainsoft / NunitWebResources / ClearErrorOnError.aspx
1 <%@ Page Language="C#"  %>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
4 <html xmlns="http://www.w3.org/1999/xhtml" >
5 <script runat="server" >
6     protected void Page_Load(object sender, EventArgs e)
7     {
8         //System.Threading.Thread.CurrentThread.Abort ();
9         throw new Exception ();
10     }
11     
12     protected void Page_Error(object sender, EventArgs e)
13     {
14         Context.ClearError ();
15     }
16 </script>
17
18 <html  >
19 <head id="Head1" runat="server">
20     <title>Exception handling test</title>
21 </head>
22 <body>
23     <form id="Form1" runat="server">
24     <div>
25     </div>
26     </form>
27 </body>
28 </html>