Código PHP:
Protected Sub GridView1_RowDeleting(sender As Object, e As GridViewDeleteEventArgs)
Dim index As Integer = e.RowIndex
Dim idpar As Integer = CInt(GridView1.DataKeys(index).Value)
Try
Using cad As New MySqlConnection("Database=edmacmin;Data Source=localhost;User Id=root;Password=edmac; Allow Zero Datetime=True")
cad.Open()
Dim sql2 As String = ("DELETE FROM minpar WHERE idpar=?idpar1")
Dim cmd2 As New MySqlCommand(sql2, cad)
cmd2.Parameters.Add("?idpar1", MySqlDbType.Int32)
cmd2.Parameters("?idpar1").Value = idpar
cmd2.ExecuteNonQuery()
cad.Close()
End Using
Catch ex As MySqlException
MessageBox.Show("Error:" & ex.Message)
Catch ex As Exception
MessageBox.Show("Error:" & ex.Message)
End Try
End Sub
Gridview1 desencadeno el evento RowDeleting , que no estaba controlada...
De antemano muchas gracias por la ayuda
Saludos!!!
![triste](http://static.forosdelweb.com/fdwtheme/images/smilies/frown.png)