Hi have a jquery dialog:
the js source is:
$(document).ready(function() {
$("#DialogConfirmationDiv").dialog({
bgiframe: true,
autoOpen:false,
height: 140,
title: "Confermi l' invio?",
modal: true
});
}
the html source is:
<div id="DialogConfirmationDiv" title="Conferma nota spese">
<asp:Button ID="ConfermaSi" runat="server" Text="Si" OnClick="ButtonSalva_Click" OnClientClick="$('#DialogConfirmationDiv').dialog('close');return true;" />
<asp:Button ID="ConfermaNo" runat="server" Text="No" OnClientClick="$('#DialogConfirmationDiv').dialog('close');return false" />
</div>
the button ConfermaNo works.
On the click event ConfermaSi close itself but don’t call the ButtonSalva_Click method.
I tried with debugger and breakpoints on this method bur it’s not called.
How can i do ?
thanks
I was able to reproduce your issue. Your “Yes” button is doing a submit. Try this with “return true” removed