<%@ Page Language="C#" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
  <title>ASP.NET AJAX</title>
</head>
<body>
  <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
      <Scripts>
        <asp:ScriptReference Name="PreviewScript.js" Assembly="Microsoft.Web.Preview" />
      </Scripts>
    </asp:ScriptManager>
    <div>
      <label id="Label1">Obramowanie tego tekstu zostanie zmienione</label>
    </div>
    <input type="button" id="Button1" value="Ciągłe" />
    <input type="button" id="Button2" value="Przerywane" />
  </form>
  <script type="text/xml-script">
    <page xmlns:script="http://schemas.microsoft.com/xml-script/2005">
      <components>
        <label id="Label1" />
        <button id="Button1">
          <click>
            <setPropertyAction target="Label1"
                               property="element"
                               propertyKey="style.borderStyle"
                               value="solid" />
          </click>
        </button>
        <button id="Button2">
          <click>
            <setPropertyAction target="Label1"
                               property="element"
                               propertyKey="style.borderStyle"
                               value="dotted" />
          </click>
        </button>
      </components>
    </page>
  </script>
</body>
</html>
