when user change the checkbox, I want first show my custom confirm dialog message. If user select yes, I want fire the code behing event processado_CheckedChanged(object sender, EventArgs e)
I tried something like:
<asp:CheckBox ID="processado" runat="server" OnCheckedChanged="javascript:confirmingChange();" AutoPostBack="true" />
And my js:
function confirmingChange() {
     $.confirm({
        'title': 'Confirm',
        'message': 'Are you sure?',
        'buttons': {
            'Yes': {
               'action': function () {
                    __doPostBack(document.getElementById('processado'), '');
               }
            },
            'No': {
                'action': function () {
                     return false;
                }
            }
        }
    });
    return false;
}
How can I fire my codebehind event using javascript? Thanks.
 
     
    