You can use the ATLAS ConfirmButton to make the
confirmation on more then a single button. For this purpose you don't need to
have multiple instances of the ConfirmButton. Check out the code below which
assigns the confirmation message to two buttons.
ConfirmButtonExtender1.TargetProperties.Add
(new AtlasControlToolkit.ConfirmButtonProperties());
ConfirmButtonExtender1.TargetProperties.Add
(new AtlasControlToolkit.ConfirmButtonProperties());
ConfirmButtonExtender1.TargetProperties[0]
.ConfirmText = "Are you sure";
ConfirmButtonExtender1.TargetProperties[0]
.TargetControlID = "Button1";
ConfirmButtonExtender1.TargetProperties[1]
.ConfirmText = "This is button2";
ConfirmButtonExtender1.TargetProperties[1]
.TargetControlID = "Button2";
powered by IMHO 1.3