confirmation for delete button in gridview control using c#

Posted by Chinnibr under ASP.NET category on | Views : 5042
In HTML page ,for gridview button column tag add this code

 <asp:TemplateField ShowHeader="False">
<asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Delete"
OnClientClick='return confirm("Are you sure you want to delete this entry?");'
Text="Delete" />

Comments or Responses

Login to post response