< /p>
Код: Выделить всё
function checkCaptcha(buttonId) {
console.log("Button UniqueID:", buttonId);
__doPostBack(buttonId, ''); // Doesn't work
__doPostBack(buttonId.id, ''); // Doesn't work
console.log("Trying with 'this':", this);
__doPostBack(this, ''); // Doesn't work
__doPostBack(this.UniqueID, ''); // this.UniqueID is undefined
}
Как может Я правильно использую __dopostback с уникальным ID в WebForms с использованием JavaScript?
Подробнее здесь: https://stackoverflow.com/questions/793 ... h-javascri
Мобильная версия