Delete Confirmation for Delete ButtonField, TemplateField and CommandField in a GridView in ASP.NET
Introduction: This article explains how to add delete confirmation for ButtonField, CommandField and TemplateField columns in a GridView. In this example, I am using a GridView and delete buttons to just hide the row to keep the demo simple. Markup: < html xmlns = "http://www.w3.org/1999/xhtml" > < head runat = "server" > < title ></ title > </ head > < body > < form id = "form1" runat = "server" > < asp : GridView ID = "GridView1" runat = "server" Font-Names = "Tahoma" Font-Size = "Small" CellPadding = "4" BorderColor = "#507CD1" BorderStyle = "Solid" AutoGenerateColumns = "false" ForeColor = "#333333" GridLines = "None" OnRowDataBound = "GridView1_RowDataBou...
Comments