update updatepanel with js or jquery

0

How to update a .net updatepanel with Javascript through an HTML button? There are several "examples" but none really worked for me, I've tried with the following, maybe I'm missing something:

$('#btnOk').on('click', function () {
    var btnOk = document.getElementById('btnOk');
    btnOk.addEventListener('click',
    function () {
        var UpdatePanel1 = '<%=UpdatePanel1.ClientID%>';
        __doPostBack(UpdatePanel1, '');
        
    }, false);
});
    
asked by Ivxn 25.02.2018 в 18:56
source

0 answers