Author: Acoustic1978 | Posted on: 5/21/2010 7:01:58 AM | Views : 297

Hello forum,
I have a button in my gridview recurring through the rows which requires confirmation before it deletes a record.  Instead of it asking, "are you certain you want to delete this contact?"  I want it to specifically ask the user, "are you sure you want to delete <the name of the contact>?"   This is the button that I have at the moment and I have no idea how to place the contact's name in there:
<asp:ImageButton ID="delContact" Runat="server" CausesValidation="False" OnClientClick="return confirm('Are you certain you want to delete this contact?'); " CommandName="Delete" ImageUrl="../images2/delete1.png"> </asp:ImageButton>
 
...

Go to the complete details ...