articles

Home / DeveloperSection / Articles / Ajax Toolkit ConfirmButtonExtender Control in ASP.Net

Ajax Toolkit ConfirmButtonExtender Control in ASP.Net

Amit Singh30559 07-Dec-2010

The ConfirmButtonExtender check the confirmation of end user action.

ConfirmButton Properties:

TargetControlID -The ID of the button or link for this extender to operate on.

Confirm Text - The text to show when you want to confirm the click.

Code:
 <%-- ScriptManager control manages client script for AJAX enabled ASP.NET pages.This enables partial-page rendering and Web-service calls.You have to used this if you want to use ajax control toolkit--%>
<asp:ScriptManagerID="ScriptManager1"runat="server"></asp:ScriptManager>
 
<cc1:ConfirmButtonExtenderID="ConfirmButtonExtender1"runat="server"TargetControlID="Button1"ConfirmText="Do you want to submit the page">
</cc1:ConfirmButtonExtender>
 
<asp:LabelID="Label1"runat="server"Text="Enter your email id"></asp:Label>
<asp:TextBoxID="TextBox1"runat="server"></asp:TextBox>
<asp:ButtonID="Button1"runat="server"Text="Submit"/>
Run the project:

Ajax Toolkit ConfirmButtonExtender Control in ASP.Net

When you click submit button then confirmation popup will open like

Ajax Toolkit ConfirmButtonExtender Control in ASP.Net


Updated 04-Mar-2020

Leave Comment

Comments

Liked By