You are on page 1of 1

Private Sub GrdDetalle_RowCommand(sender As Object, e As

GridViewCommandEventArgs) Handles GrdDetalle.RowCommand


Dim codproducto As String
If e.CommandName = "Eliminar" Then
codproducto = e.CommandArgument
Dim oProducto As New ProductosCN
oProducto.Eliminar_producto(codproducto)
Dim script As String = "<script type='text/javascript'> alert('Producto
Eliminado');</script>"
ClientScript.RegisterStartupScript(GetType(Page), "guardar", script,
False)
'mostrar()
'codcliente = e.CommandArgument
'Session("vmodoedicion") = True
'Response.Redirect("WebCliente.aspx?codigo=" & codcliente & "")
'ElseIf e.CommandName = "Eliminar" Then
' codcliente = e.CommandArgument
' Dim oCliente As New ClienteCN
' oCliente.Eliminar(codcliente)
' mostrar()
End If
End Sub

You might also like