Search
Sponsor
Winners

Win Prizes

Social Presence
Twitter Twitter LinkedIn YouTube Google

Like us on Facebook
Advertisements
Top Codes Author
Sat, 22-Nov-2014 Authors
All Time Authors
Satyapriyanayak
12160
Vishal@Neeraj
8800
Jayakumars
8120

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 : 4829 | 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>


Found interesting? Add this to:



Comments or Responses


Login to post response