Hi
One of the good things about using ATLAS (ASP.NET Ajax extender) is that it makes most of the JavaScript get done without using a single line of java script. The same is true if you want to display a message box to the user when he clicks on a button (lets say a delete or a update button). If the User clicks on the ok button then only the button functionality is performed normally otherwise the button does not perform its normal submit functionality.
The extender can be used with Normal Button, Link button or an image button. The code to use the ConfirmButtonExtender looks like this.
<atlasToolkit:ConfirmButtonExtender ID="cbe" runat="server">
<atlasToolkit:ConfirmButtonProperties
TargetControlID="LinkButton1"
ConfirmText="Are you sure you want to click this?" />
</atlasToolkit:ConfirmButtonExtender>
Here the TargetControlID is the Id of the button control, which will cause the alert message. The ConfirmText is the text to be show in the alert message box.
[Note: You can also use HTML Entities in the ConfirmText]
Hope this helps
Thanks
Vikram