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 ...