Refer to terrylee's timercontrol example
However, to make the video look simple, I didn't use the service to directly display a dynamic clock! Hope you do not understand friends can directly Leave a message, http://thcjp.cnblogs.com, detailed parameters can refer to the http://terrylee.cnblogs.com/archive/2006/07/28/Atlas_TimerControl.html
By the way, the topic of this video isTimercontrol
I will not talk about it above. Go directly to the next important one!
Download video
The Code is as follows:
Background C # code
Protected void timercontrolpolictick (Object sender, eventargs E)
{
Label1.text = datetime. Now. tolongtimestring ();
}
Front-end HTML code
<% @ Page Language = "C #" autoeventwireup = "true" codefile = "default6.aspx. cs" inherits = "default6" %>
<! 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> No title page </title>
</Head>
<Body>
<Form ID = "form1" runat = "server">
<Div>
See timercontrol examples for <a href = "http://www.cnblogs.com/Terrylee/"> terrylee </a>
<Br/>
<Br/>
However, to make the video look simple, I didn't use the service to directly display a dynamic clock! Hope that do not understand friends can directly Leave a message, http://thcjp.cnblogs.com, detailed parameters can refer to the http://terrylee.cnblogs.com/archive/2006/07/28/Atlas_TimerControl.html <br/>
<Br/>
By the way, the topic of this video is <strong> use the server-side Timer control timercontrol & nbsp; <br/>
<Br/>
I will not talk about it above. Go directly to the next important one! <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 = "timercontrolpolictick">
</Atlas: timercontrol>
<Asp: Label id = "label1" runat = "server" text = "label"> </ASP: Label>
</Contenttemplate>
</Atlas: updatepanel>
<Br/>
More tutorials follow http://thcjp.cnblogs.com
</Form>
</Body>
</Html>