Search
Winners

Win Prizes

Social Presence
Twitter Twitter LinkedIn YouTube Google

Like us on Facebook
Advertisements
Top Codes Author
Mon, 30-Mar-2015 Authors
All Time Authors
vishalneeraj-24503
17400
Satyapriyanayak
12160
Bandi
8320

Latest members | More ...


(Statistics delayed by 5 minutes)
 Codes

confirmation for delete button in gridview control using c#

Chinnibr
Posted by Chinnibr under ASP.NET on 9/25/2009 5:24:02 AM | Views : 4972 | Status : [Member]

In HTML page ,for gridview button column tag add this code


 <asp:TemplateField ShowHeader="False">

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


Share this to:

Bookmark It

Comments or Responses


Login to post response