Ajax 1.0 Timer控件怎么用呀?
我一用就报以下错误:
The control with ID 'tt ' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.
是怎么回事呀?
------解决方案--------------------在视图设计里,拖如一个timer控件,双击timer控件图标,就会进入cs里,会自动生成一个方法,把你要处理的代码放到这个方法里就可以了 ,当然设好每次处理的间隔时间,在pageonload里,timer1.internal=30*1000(30秒),并且设timer1.enabled为true
不过要用Atlax的控件 必须在页面开始 就加载
<asp:ScriptManager runat= "server " EnablePartialRendering= "true " />
可参考http://blog.joycode.com/percyboy/articles/3595.aspx