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

Ajax Toolkit ConfirmButtonExtender Control in ASP.Net


AJAX AJAX 
Ratings:
1 Comment(s)
 26216  View(s)
Rate this:

Ajax Toolkit ConfirmButtonExtender Control in ASP.Net


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:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>

 

<cc1:ConfirmButtonExtender ID="ConfirmButtonExtender1" runat="server" TargetControlID="Button1" ConfirmText="Do you want to submit the page">

</cc1:ConfirmButtonExtender>

 

<asp:Label ID="Label1" runat="server" Text="Enter your email id"></asp:Label>

<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>

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

Run the project:

AjaxControl Toolkit ConfirmButtonExtender Control in ASP.Net

When you click submit button then confirmation popup will open like

AjaxControl Toolkit ConfirmButtonExtender Control in ASP.Net


Thanks

By Sunil Singh on   6 days ago

Thanks for sharing informative post.


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

Follow MindStick