<td> <button onclick="myFunction(<%=rs("Id")%>)">Cancella</button></td> </tr> </table> <script> function myFunction(Valore) { // alert("Cancellazione Record"); var txt; var r = confirm("Confermi la cancellazione del record?"); if (r == true) { document.location.replace('CancellaRichiesta.asp?IdCancellare='+Valore); } else { txt = "You pressed Cancel!"; } } </script> |