Search
Submit & Win
Submit and win
Cash Prizes !
Winners

Win Prizes

Social Presence
Twitter Twitter LinkedIn YouTube Google

Like us on Facebook
Advertisements
Top Codes Author
Sun, 21-Dec-2014 Authors
All Time Authors
Satyapriyanayak
12160
Vishal@Neeraj
10880
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 : 4869 | 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