Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid View - DELETE CommandField
Message
Information générale
Forum:
ASP.NET
Catégorie:
WebForms
Divers
Thread ID:
01335798
Message ID:
01335860
Vues:
9
>Thank you !!! That did it for me:
>
>
>Protected Sub gvUsers_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles gvUsers.RowDataBound
>        If (e.Row.RowType = DataControlRowType.DataRow) Then
>            Dim ib As ImageButton = DirectCast(e.Row.Cells(6).Controls(0), ImageButton)
>            ib.Attributes.Add("onClick", "var ch=confirm('Do you want to delete');if(ch==false) return false;")
>        End If
>    End Sub
>
BTW, in your code you forgot a question mark at the end :)
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform