zoukankan
html css js c++ java
Atlas入门使用服务端定时控件TimerControl [视频]
参阅了
TerryLee
的 TimerControl范例
不过为了视频看起来跟简单,所以我没有用到service 直接显示一个动态时钟!希望有不明白的朋友可直接留言,http://thcjp.cnblogs.com ,详细参数可以参阅http://terrylee.cnblogs.com/archive/2006/07/28/Atlas_TimerControl.html
对了,这节视频的主题是
使用服务端定时控件TimerControl
前面就不多说了,直接进入后面重要的!
下载视频
全部代码如下
后台C#代码
protected
void
TimerControl1_Tick(
object
sender, EventArgs e)
{
Label1.Text
=
DateTime.Now.ToLongTimeString();
}
前台HTML代码
<%
@ 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
>
无标题页
</
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
>
查看全文
相关阅读:
20145314郑凯杰 《Java程序设计》实验一 Java开发环境的熟悉(Windows + Eclipse)实验报告
20145314郑凯杰 《Java程序设计》第6周学习总结
20145314郑凯杰 《Java程序设计》第5周学习总结
20145314郑凯杰 《Java程序设计》第4周学习总结
20145314郑凯杰 《Java程序设计》第3周学习总结
20145314郑凯杰 《Java程序设计》第2周学习总结 代码开始!
20145314郑凯杰 《Java程序设计》第1周学习总结
【问卷调查】来吧!新学期!
先记录一下吧 开始的程序 hello!java!
第0周学习总结
原文地址:https://www.cnblogs.com/thcjp/p/487625.html
最新文章
mongodb常用语句(集合操作)
如何在DIV内只要垂直滚动条,不要水平滚动条
在CentOS中使用 yum 安装MongoDB及服务器端配置
memcached分布式部署
linux下memcached的启动/结束的方式
centos系统为php安装memcached扩展
Highcharts属性与Y轴数据值刻度显示Y轴最小最大值
Linux安装PHP加速器Xcache
linux安装PHP加速器eAccelerator
线程间通讯
热门文章
线程生命周期(状态)
NSThread常见方法
NSThread创建线程的3种方式
关键帧动画结束后会有短暂停顿
基本动画CABasicAnimation
UICollectionView布局cell的三种方式
CALayer的m34
非RootLayer的隐式动画
CALayer的transform属性
20145314郑凯杰 《Java程序设计》实验二 实验报告
Copyright © 2011-2022 走看看