您的位置:首页 > 其它

Atlas入门-使用服务端定时控件TimerControl [视频]

2006-08-27 16:30 471 查看
参阅了TerryLee 的 TimerControl范例

不过为了视频看起来跟简单,所以我没有用到service 直接显示一个动态时钟!希望有不明白的朋友可直接留言,http://thcjp.cnblogs.com ,详细参数可以参阅http://terrylee.cnblogs.com/archive/2006/07/28/Atlas_TimerControl.html

对了,这节视频的主题是 使用服务端定时控件TimerControl

前面就不多说了,直接进入后面重要的!

下载视频

全部代码如下

protected void TimerControl1_Tick(object sender, EventArgs e)

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>无标题页</title>
</head>
<body>
<form id="form1" runat="server">
<div>
参阅了<a href="http://www.cnblogs.com/Terrylee/">TerryLee</a> 的 TimerControl范例
<br />
<br />
不过为了视频看起来跟简单,所以我没有用到service 直接显示一个动态时钟!希望有不明白的朋友可直接留言,http://thcjp.cnblogs.com ,详细参数可以参阅http://terrylee.cnblogs.com/archive/2006/07/28/Atlas_TimerControl.html<br />
<br />
对了,这节视频的主题是 <strong>使用服务端定时控件TimerControl  <br />
<br />
前面就不多说了,直接进入后面重要的!<br />
<br />
<atlas:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="True">
</atlas:ScriptManager>
</strong>
</div>
<atlas:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<atlas:TimerControl ID="TimerControl1" runat="server" Interval="500" OnTick="TimerControl1_Tick">
</atlas:TimerControl>
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
</ContentTemplate>
</atlas:UpdatePanel>
<br />
更多教程请关注 http://thcjp.cnblogs.com </form>
</body>
</html>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: