更新计时器,但不是每次都更新 [英] update timer but not every time

查看:80
本文介绍了更新计时器,但不是每次都更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用了对我来说是新的Ajax-Tools.

UpdatePanel中,我保留了计时器控件,在更新面板中,有一些单选按钮.

这是一个倒数计时器.它工作正常,但是当我单击其他问题(如第6个问题的单选按钮)时,计时器将重新启动.

请帮助我,我已经尝试了很多,但是失败了,而且我是asp.net的新手.

I have used Ajax-Tools which are new to me.

In UpdatePanel I have kept the timer control and in update panel there are some radio buttons.

It is a count down timer. It is working properly but when I click some other question like question no 6th''s radio button the timer gets restarted.

Please help me I have tried a lot but failed, and I am new to asp.net.

推荐答案

您的单选按钮是否将AutoPostBack 属性设置为?选择更改可能导致回发和您的UpdatePanel 刷新,从而重启计时器
Do your radio buttons have AutoPostBack property set to true? It is possible that selection change causes postback and your UpdatePanel refreshes, restarting the timer


这篇关于更新计时器,但不是每次都更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆