Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid View - DELETE CommandField
Message
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
WebForms
Titre:
Grid View - DELETE CommandField
Divers
Thread ID:
01335798
Message ID:
01335798
Vues:
58
Hi all,

How can I find the id of the Delete CommandField set as ButtonType = Image ? I am trying to add the DELETE confirmation:
Protected Sub gvUsers_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles gvUsers.RowDataBound

        Dim ib As ImageButton = DirectCast(e.Row.FindControl("Delete"), ImageButton)


        ib.Attributes.Add("onclick", "javascript:return confirm('Are you sure you want to delete this item?');")
Thank you,
Daniel
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform