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

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

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