webforms - Using bootbox.confirm with .NET web forms -
i trying work web forms. have basic knowledge (i work mvc).
<asp:button runat="server" id="linkbutton1" onclientclick="return confirmitemdelete()" commandargument='<%# eval("id") %>' text="delete" onclick="lbdeletemessage_click"></asp:button> function confirmitemdelete() { bootbox.confirm('are sure want delete message?', function (confirmed) { return confirmed; }); };
button click causes server side delete. because bootbox.confirm
works callbacks (return false or true in callback). causes run server side postback.
what best solution here?
Comments
Post a Comment