<%@ Page Language="VB" %>

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

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>ConfirmButtonExtender</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <cc1:ConfirmButtonExtender ID="ConfirmButtonExtender1" runat="server" 
         TargetControlID="Button1"
         DisplayModalPopupID="ModalPopupExtender1">
        </cc1:ConfirmButtonExtender>
        <cc1:ModalPopupExtender ID="ModalPopupExtender1" runat="server" 
            CancelControlID="ButtonNo" OkControlID="ButtonYes" 
            PopupControlID="Panel1" 
            TargetControlID="Button1">
        </cc1:ModalPopupExtender>
        <asp:Button ID="Button1" runat="server" Text="Button" />        
        <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;">
         Are you sure you wanted to click this button?<br />
         <asp:Button ID="ButtonYes" runat="server" Text="Yes" />
         <asp:Button ID="ButtonNo" runat="server" Text="No" />
        </asp:Panel>
    </div>
    </form>
</body>
</html>
