Confirmation before Deleting Record using grid view
To ask the user to confirm before deleting a record<Column>
<asp:TemplateField>
<ItemTemplate>
<asp:Button ID="btnDel" runat="server" Text="Delete CommandName="Delete" OnClientClick="return confirm('Are you sure you want to delete?');" /> </ItemTemplate>
</asp:TemplateField>
</Column>
How can I get a value for a Lable within a gridview OnItemCommand?