Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid View - DELETE CommandField
Message
 
To
All
General information
Forum:
ASP.NET
Category:
WebForms
Title:
Grid View - DELETE CommandField
Miscellaneous
Thread ID:
01335798
Message ID:
01335798
Views:
59
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
Next
Reply
Map
View

Click here to load this message in the networking platform