asp.net - Javascript confirm method not working -


i have button delete record in asp.net grid view

<asp:button id="btndelete" cssclass="btn btn-delete" tooltip="delete" runat="server" commandname="delete" commandargument='<%#eval("idjob")%>' usesubmitbehavior="false" onclientclick="return confirm('are sure?')" /> 

when click on rowcommand not fire. if remove onclientclick works.

can me please.

in place of onclientclick use onclick. onclick execute javascript when button clicked.

<asp:button id="btndelete" cssclass="btn btn-delete" tooltip="delete" runat="server" commandname="delete" commandargument='<%#eval("idjob")%>' usesubmitbehavior="false" onclick="return confirm('are sure?')" /> 

Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -