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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Kontrolka ToggleButtonExtender</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
        </asp:ToolkitScriptManager>
        <asp:MutuallyExclusiveCheckBoxExtender 
         ID="MutuallyExclusiveCheckBoxExtender1" runat="server" Key="MyCheckBoxes" 
         TargetControlID="CheckBox1">
        </asp:MutuallyExclusiveCheckBoxExtender>
        <asp:MutuallyExclusiveCheckBoxExtender 
         ID="MutuallyExclusiveCheckBoxExtender2" runat="server" Key="MyCheckBoxes" 
         TargetControlID="CheckBox2">
        </asp:MutuallyExclusiveCheckBoxExtender>
        <asp:ToggleButtonExtender ID="ToggleButtonExtender1" runat="server" 
         TargetControlID="CheckBox1" UncheckedImageUrl="Images/Unchecked.gif" 
         CheckedImageUrl="Images/Checked.gif" CheckedImageAlternateText="Zaznaczone" 
         UncheckedImageAlternateText="Odznaczone" ImageWidth="25" 
         ImageHeight="25">
        </asp:ToggleButtonExtender>
        <asp:CheckBox ID="CheckBox1" runat="server" Text="&nbsp;Opcja pierwsza" />
        <asp:ToggleButtonExtender ID="ToggleButtonExtender2" runat="server" 
         TargetControlID="CheckBox2" UncheckedImageUrl="Images/Unchecked.gif" 
         CheckedImageUrl="Images/Checked.gif" CheckedImageAlternateText="Zaznaczone" 
         UncheckedImageAlternateText="Odznaczone" ImageWidth="25" 
         ImageHeight="25">
        </asp:ToggleButtonExtender>
        <asp:CheckBox ID="CheckBox2" runat="server" Text="&nbsp;Opcja druga" />
    </div>
    </form>
</body>
</html>
