Atlas entry-timercontrol [Video]

Source: Internet
Author: User
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>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.