<%@ Page Language="VB" %>

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

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>ConfirmButtonExtender</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
        </asp:ToolkitScriptManager>
        <asp:ConfirmButtonExtender ID="ConfirmButtonExtender1" runat="server" 
         TargetControlID="Button1"
         DisplayModalPopupID="ModalPopupExtender1">
        </asp:ConfirmButtonExtender>
        <asp:ModalPopupExtender ID="ModalPopupExtender1" runat="server" 
            CancelControlID="ButtonNo" OkControlID="ButtonYes" 
            PopupControlID="Panel1" 
            TargetControlID="Button1">
        </asp:ModalPopupExtender>
        <asp:Button ID="Button1" runat="server" Text="Przycisk" />        
        <asp:Panel ID="Panel1" runat="server"
         style="display:none; background-color:White; width:200; 
         border-width:2px; border-color:Black; border-style:solid; padding:20px;">
         Czy jesteś pewien, że chciałeś kliknąć ten przycisk?<br />
         <asp:Button ID="ButtonYes" runat="server" Text="Tak" />
         <asp:Button ID="ButtonNo" runat="server" Text="Nie" />
        </asp:Panel>
    </div>
    </form>
</body>
</html>
