<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ErrorHandlerTest.aspx.cs"
    Inherits="ErrorHandler.ErrorHandlerTest" %>

<%@ Register Assembly="ErrorHandlerLibrary" Namespace="ErrorHandlerLibrary" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head runat="server">
    <title>Error Handler Test Page</title>
</head>
<body>
  <form id="form1" runat="server">
  <asp:ScriptManager ID="SM1" runat="server" />
  <cc1:ErrorHandler ID="ErrorHandler1" runat="server" />
  <asp:Button runat="server" OnClientClick="tester();" Text="Test Client Error Handling" />
  <asp:Button ID="Button1" runat="server" OnClientClick="testHandled();" Text="Test Handled Error Handling" />

  <script type="text/javascript">
  function testHandled() {
    $find("ErrorHandler").publishError(Error.create("test", "error"));
  }
  function tester() {
    var test = null;
    test.err = 4;
  };
  </script>

  </form>
</body>
</html>
