You can then reference this control in your page like any other normal LinkButton. Except there is a new property called "ConfirmationText" that you can set to specify a confirmation message, or just let it default to "Are you sure?"
Wednesday, September 9, 2009
ASP.NET Confirmation LinkButton
Below is the code to a very simple and reusable Confirmation LinkButton. Basically the control emits the standard "Are you sure?" type text before actually submitting the event allowing the user to click "Ok" or "Cancel". Just create a new .CS file and copy/paste the code below into the file. This will create the new control. Here it is: