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,