<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <br />
        <div>
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                    <asp:Label ID="Label1" runat="server" Text="Label" ForeColor="Green"></asp:Label><br />
                    <asp:Button ID="Button1" runat="server" Text="Odśwież panel" />
                    <br />
                    <asp:Timer ID="Timer1" runat="server" Interval="1000" Enabled="False">
                    </asp:Timer>
                </ContentTemplate>
                <Triggers>
                    <asp:AsyncPostBackTrigger ControlID="Button3" EventName="Click" />
                </Triggers>
            </asp:UpdatePanel>
            <br />
            <asp:CheckBox ID="CheckBox1" runat="server" AutoPostBack="True" OnCheckedChanged="CheckBox1_CheckedChanged"
                Text="Odświeżanie panelu co 1 sek." /><br />
            &nbsp;&nbsp;<br />
            <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1" DisplayAfter="0" DynamicLayout="False">
                <ProgressTemplate>
                    <table width=150 style="border-right: black 1px solid; border-top: black 1px solid; border-left: black 1px solid; color: white; border-bottom: black 1px solid; background-color: green">
                        <tr>
                            <td style="text-align: center">
                                Trwa odświeżanie...</td>
                        </tr>
                    </table>                    
                </ProgressTemplate>
            </asp:UpdateProgress>
        </div>
        <br />
        <asp:Label ID="Label2" runat="server" Text="Label"></asp:Label><br />
        <asp:Button ID="Button2" runat="server" Text="Odśwież stronę" />
        <asp:Button ID="Button3" runat="server" Text="Odśwież panel" />
        <br />
        <br />
        <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
                <asp:Label ID="Label3" runat="server" ForeColor="Navy" Text="Label"></asp:Label><br />
                <asp:Button ID="Button4" runat="server" Text="Odśwież panel" />
            </ContentTemplate>
        </asp:UpdatePanel>
        <br />
        <asp:UpdateProgress ID="UpdateProgress2" runat="server" AssociatedUpdatePanelID="UpdatePanel2" DisplayAfter="0">
            <ProgressTemplate>
                <table width=150 style="border-right: black 1px solid; border-top: black 1px solid; border-left: black 1px solid; color: white; border-bottom: black 1px solid; background-color: navy">
                    <tr>
                        <td style="text-align: center">
                            Trwa odświeżanie...</td>
                    </tr>
                </table>
            </ProgressTemplate>
        </asp:UpdateProgress>
    </form>
</body>
</html>
