Home > DeveloperSection > Articles > AJAX Control Toolkit: ConfirmButtonExtender

AJAX Control Toolkit: ConfirmButtonExtender

1 Comment(s)
 5487  View(s)
Rate this:

AJAX Control Toolkit: ConfirmButtonExtender

The ConfirmButtonExtender check the confirmation of end user action. The main key properties of extender are: TargetControlID, ConfirnText, and DisplayModalPopupID.

How we implement the ConfirmButtonExtender


Step1: we use the following control on aspx page



<form id="form1" runat="server">


<%--Using ScriptManager or ToolkitScriptManager according toolkit version--%>

<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>

<%-- using ConfirmButtonExtender here--%>

<cc1:ConfirmButtonExtender ID="ConfirmButtonExtender1" runat="server" 

ConfirmText="are you sure submit the page?" TargetControlID="Button1">


<%--Add button for submit the page--%>

<asp:Button ID="Button1" runat="server" Text="Submit Page" />




Step3: Run the project

Click on submit button





By Sushant Mishra on   one month ago

I always seek to read your articles.

Don't want to miss updates? Please click the below button!

Follow MindStick