Код: Выделить всё
< /code>
код Javascript < /p>
function spinStart() {
console.log("Starting message");
var target = document.getElementById('spin');
var spinner = new Spinner(opts).spin(target);
}
function spinStop() {
console.log("Done With sucess");
// does some stuff
}
< /code>
На бэкэнд < /p>
protected void btnExecute_Click(object sender, EventArgs e){
// Do something
CallMethod();
}
private void CallMethod()
{
ScriptManager.RegisterStartupScript(this, this.GetType(), "spinStop", "spinStop();", true);
}
Я заменил на < /p>
ScriptManager.RegisterStartupScript(UpdatePanelSpin, UpdatePanelSpin.GetType(), "spinStop", "spinStop();", true);
UpdatePanelSpin.Update()
< /code>
Но нет успеха.
любая идея приветствуется. < /p>
Подробнее здесь: https://stackoverflow.com/questions/794 ... he-backend
Мобильная версия