Search Asp.Net Here

Delete Record with Confirmation Message in grid view




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>



Comments :

1
Anonymous said...
on 

How can I get a value for a Lable within a gridview OnItemCommand?

Post a Comment