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

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -