Wednesday, 15 January 2014

c# - Confirmation message box on Page load -



c# - Confirmation message box on Page load -

i have requirement show confimation transaction confirmation.

i have scheme maintain daily transactions user. if debitor enters transaction confirmation message should display when creaditor log in system. if confirmed transaction transaction succeed. there multiple transactions single user. each transaction creaditor have show confirmation msg transaction details.

how in asp.net

should phone call web method javascript pending transaction or there other suitable way this?

edited $(function () { pagemethods.getpandingtransaction(onsucess, onerror); function onsucess(result) { (var = 0; <= result.length; i++) { var message = "please confirm rs." + result[i].amount if (confirm(message)) { pagemethods.updatetransaction(result[i].transactionid, true); } else { pagemethods.updatetransaction(result[i].transactionid, false); } } } function onerror(result) { } });

i able show confirm message box. want yes/no buttons instead of ok/cancel buttons. using custom dialog box not working me.

by javascript can load confirmation message on page load :

window.onload=function(){ var r=confirm("message"); if (r==true) { alert("ok!"); } else { alert("cancel!"); } };

c# javascript asp.net confirmation

No comments:

Post a Comment