this question has answer here:
- how return response asynchronous call? 24 answers
i have below js/jquery function called in onclientclick of asp.net button should return true or false or show confirm dialog, problem when $.get function called calls server side onclick event of button.. ideas?
function checkpaymentstatus() { if(document.getelementbyid('<%= radio15e.clientid %>').checked { $.get("../aj.ashx?name=john&location=boston",null).done( function(msg) { return(window.confirm("do wish proceed?")); }) } else { return true; } }
is button have wired event posting form? check button type; "submit"? don't use asp:button, use simple html button element if don't want server side events firing.