Disable Zone refresh

Sherri Guthrie asked on October 6, 2015 20:36

I am refreshing a zone using the Ajax Update panel and a timer. Is there a way of disabling the timer after a certain amount of time or times executed?

Recent Answers


Roman Hutnyk answered on October 6, 2015 21:10

Sherri, what do you mean when saying timer? Is this javascript function (perhaps setInterval)?

0 votesVote for this answer Mark as a Correct answer

Sherri Guthrie answered on October 6, 2015 21:15

I am using the Timer web part. Set the zone to Ajax - Use update panel.

0 votesVote for this answer Mark as a Correct answer

Roman Hutnyk answered on October 7, 2015 23:24

Sherri, I'm afraid does not allow that behavior. But I think you can easily achieve this with javascript

var x = setInterval(...);
window.clearInterval(x);

and do postback inside of setInterval.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.