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);
});