How to use confirm button extender control in ajax?

Posted by aswinialuri-19361 under ASP.NET AJAX category on | Points: 40 | Views : 2150
Simple way to use confirm button using ajax controls

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="confirmbutton.aspx.cs" Inherits="confirmbutton" %>

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

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">

<html xmlns="">
<head runat="server">
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
<asp:Button ID="Button1" runat="server" Text="Button" />
<asp:ConfirmButtonExtender ID="ConfirmButtonExtender1" runat="server" TargetControlID="Button1"
ConfirmText="Are you sure you want to click this?"


Comments or Responses

Login to post response