This code will confirm that you want to delete a row in a gridview: Protected Sub GridView1_RowDataBound( ByVal sender As Object , ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GridView1.RowDataBound Dim lnkDelete As LinkButton If e.Row.RowType = DataControlRowType.DataRow Then lnkDelete...