Author: live targets [original] Source: AspxBoy.Com
I often see a problem like this in the forum: "How to pop up a confirmation delete dialog when you click the Delete button. Below we are from yourself writing a custom web server control! The idea is as follows: Inherit System.Web.ui.WebControls.Button control Add a property "confirmMessage" to indicate the prompt information above the pop-up. Write a JavaScript to the page before the server control is pre-paged as follows: