Search
Winners

Win Prizes

Social Presence
Twitter Twitter LinkedIn YouTube Google

Like us on Facebook
Advertisements
Top Codes Author
Thu, 31-Jul-2014 Authors
All Time Authors
Satyapriyanayak
12160
Jayakumars
8120
Niladri.biswas
6000

Latest members | More ...


(Statistics delayed by 5 minutes)

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