Luckily, this is really, really simple now. All you need to use is ConfirmButtonExtender that comes with Atlas Control Toolkit. So here is what you do. You make you application, just as you would do normally. You have a button that will do something when clicked. The only difference is now that you add a new control, namely, ConfirmButtonExtender. This control has two properties : TargetControlID (the ID of the button which does the operation that will be confirmed) and ConfirmText (the message that you want to ask your user, something like “are you really sure you want to do this”). Here is the code :
The whole project you can download here from reBlogger lab.
This blog is being delivered to you by
“Do you know what your employees are blogging about?”