Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Deleting a record mixing ASP and JavaScript
Message
De
04/03/2003 15:43:26
Fabian Belo
Independent Developer
Argentine
 
 
À
04/03/2003 15:37:18
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00761166
Message ID:
00761171
Vues:
15
set rsborra=conn.execute (sql)  ;
You must close VBScript code delimiter by %> at the end of the line above (before ;)

HTH

>Hello, i'm trying to delete a record but the problem is in my syntaxis this is my code:
>
><script language="JavaScript">
>  function eliminar(){
>    sw=0;
>    for(var i=0; i<document.form1.radiobutton.length; i++){
>       if (document.form1.radiobutton.checked){
>        <%sqlborra='delete from RegistroPersonas where email='&document.form1.radiobutton.value
>         set rsborra=conn.execute (sql)  ;
>         alert("Record erased");
>       sw=1;
>                                           }
>                                                           }
>       if (sw==0){alert('Por favor seleccione un item a eliminar');}
>                    }
></script>
>
>do i have something wrong, how can i solve it?
"Since I've read that alcohol is bad... I quit reading."
Me


http://www.fabianbelo.com.ar
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform