Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You would want to do something client-side in javascript prompting them to accept their decision before doing it...</p> <pre><code>&lt;script type="text/javascript"&gt; function btnChild_Delete_Click() { this._popup.hide(); // the _doPostBack is triggering the delete. simply writing something here. if (!confirm('Are you sure?')) return; __doPostBack(this._source.name, ''); } &lt;/script&gt; </code></pre> <hr> <p>EDIT: to do this with a stylized confirmation window I would do the following (example is pseudo-code to exemplify logic flow).</p> <ol> <li><p>Make a <code>DIV</code> for confirmation of the deletion. Stylize it as you like in CSS and hide it (either by making it display:none, or off-screen with margins.</p> <pre><code>&lt;div id="confirmationBox"&gt; &lt;p&gt;Are you sure?&lt;/p&gt; &lt;button id="doDelete"&gt;Delete&lt;/button&gt; &lt;/div&gt; </code></pre></li> <li><p>Alter your script to call a function that shows/hides the confirmation DIV:</p> <pre><code>function buttonConfirmDelete_Click { // 1. display the confirmation box. } function buttonDoDelete_Click { __doPostBack(this._source.name, ''); // 2. hide the confirmation box. } </code></pre></li> </ol> <p>The result is your existing delete button simply unveils the delete button that actually performs the call back which is now contained within the confirmation popup.</p> <p>there are certainly more clean ways to do this, but it seems like you are looking for a quick and easy solution.</p> <p>That answer your question?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload