SiteMap  | About    

Ajax ConfirmButtonExtender

ASP.NET AJAX Control Toolkit is an open-source project built on top of the Microsoft ASP.NET AJAX framework. The Ajax Control Toolkit contains a rich set of controls that you can use to build highly responsive and interactive Ajax-enabled Web applications.


The Ajax Control Toolkit contains more than 40 controls. The ConfirmButton is a simple extender that displays the confirm box with a confirmation message and OK, Cancel button also catches clicks on a button and displays a message to end user.

To use the Ajax Control Toolkit in your Visual Studio project, you should add reference to the AjaxControlToolkit.dll in your project.



<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<head id="Head1" runat="server">
	<title>Untitled Page</title>
	<form id="form1" runat="server">
        <br />
        <asp:Label ID="Label2" runat="server" Text="">
        <br /><br />
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <asp:Button ID="btnConfirm" runat="server" Text="Show Server Time"
            OnClick="btnConfirm_Click" />
            <asp:ConfirmButtonExtender ID="ConfirmButtonExtender1" runat="server"
            ConfirmText="Dyou want to see current server time ?"
            <br /><br />
            <asp:Label ID="lblMessage" runat="server">
            </asp:Label><br />

Click the following links to see full source code

C# Source Code
VB.NET Source Code
Default.aspx.vb (C) 2018    Founded by raps mk
All Rights Reserved. All other trademarks are property of their respective owners.