Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Deleting a record mixing ASP and JavaScript
Message
From
04/03/2003 15:37:18
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Deleting a record mixing ASP and JavaScript
Miscellaneous
Thread ID:
00761166
Message ID:
00761166
Views:
65
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?
Next
Reply
Map
View

Click here to load this message in the networking platform