masterkush
New Member
I am new to asp.net programming.I have the following template field inside a gridView.\[code\]<asp:TemplateField HeaderText="Delete" <ItemTemplate> <asp:LinkButton runat="server" ID="lnkDelete" OnCommand="lnkDelete_Command" CommandArgument='<%#Eval("ItemID")%>' OnClientClick="showDeleteVerifiction()" </asp:LinkButton>....\[/code\]So right now, my delete button works in my gridView. You can assume that the function lnkDelete_Command deletes the item with the corresponding \[code\]ItemID\[/code\].I would like to add in a client-side (JS/Jquery) check to be able to prompt the user if he would like to delete the item, but I'm not exactly sure how to do this.Thanks in advance.EDIT:After looking at some tutorials, I have tried the following:\[code\]showDeleteVerification = function(){ alert("not letting this pass"); return false;}\[/code\]However, the item is still deleted when I click OK