Translate

> > ASP.NET GridView Row Delete Confirmation

ASP.NET GridView Row Delete Confirmation

Posted on Tuesday, May 29, 2012 | No Comments

 <asp:TemplateField>
                <ItemTemplate>
                <asp:LinkButton Runat="server" CommandName="Edit">Edit</asp:LinkButton>
           <asp:LinkButton Runat="server" CausesValidation="False"
               OnClientClick="return confirm('Are you sure you want to delete this distribution?');"
               CommandName="Delete">Delete</asp:LinkButton>
       </ItemTemplate>
       <EditItemTemplate>  
           <asp:LinkButton CommandName="Update" Text="Update"    
               runat="server"/>    
           <asp:LinkButton CommandName="Cancel" Text="Cancel"
               runat="server"/>          
       </EditItemTemplate>
 </asp:TemplateField>

Leave a Reply

Powered by Blogger.