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

Click here to load this message in the networking platform