1.
Private
Sub
myGridView_RowDataBound(sender
As
Object
, e
As
GridViewRowEventArgs)
2.
3.
Dim
btnDelete
As
Button =
CType
(e.Row.FindControl(
"btnDelete"
),Label)
4.
IF
Not
IsNothing(btnDelete)
Then
5.
btnDelete.Attributes.Add(
"Onclick"
,
"return confirm('Do you delete...?');"
)
6.
End
IF
7.
8.
End
Sub