Hi, thanks, I am add a new value to the function
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
GridView1.Attributes.Add("onclick", " return " + "confirm('" + DELETE + "')")
End Sub
DELETE is a readonly property with String value
I know, that isn't optimal resolution, but it works. I tried to add new function
Protected Sub GridView1_RowDeleting(ByVal sender As Object, ByVal e As GridViewDeleteEventArgs) Handles GridView1.RowDeleting
Dim grid As GridViewRow = GridView1.Rows(Me.GridView1.EditIndex)
Dim lbt As LinkButton = CType(grid.Cells(3).FindControl("LinkButton2"), LinkButton)
If lbt.GetType() Is GetType(LinkButton) Then
lbt.Attributes.Add("onclick", " return " + "confirm('" + DELETE + "')")
End If
End Sub
but result is still false. In table I have columns
id, name, description, and template field with two buttons - Edit and Delete
Regards