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
>
查看全文
相关阅读:
FastAPI WebSockets
FastAPI 进阶知识(五) 子应用
FastAPI 基础学习(十五) 直接使用Request
FastAPI 安全机制(四) OAuth2 scopes
FastAPI 依赖注入系统(六) 可参数化的依赖项
FastAPI Response(四) 高级定制的Response
FastAPI Response(三) 定制化的Response
FastAPI Response(二) 直接返回Response对象
FastAPI 进阶知识(四) 后台任务
python全栈开发目录
原文地址:https://www.cnblogs.com/thcjp/p/487625.html
最新文章
@Autowired 与@Resource的区别
SpringBoot框架中的DAO层、Entity层、Service层、Controller层
UEditor单图片上传的跨域问题
Mac上如何安装jdk1.6
JSB相关学习资源
Cocos Creator 模块化脚本
Cocos Creator 加载远程资源和设备资源
深度学习Cocos Creator中
raw.githubusercontent.com:443连接失败的问题
技术栈的选择
热门文章
Python协程(三) Asyncio运行
Python协程(二) Asyncio入门
Python协程(一) 概述
FastAPI 工程管理(四) 工程示例
FastAPI 进阶知识(七) 在Request中存储附加信息
FastAPI 异步代码、并发和并行
FastAPI 工程管理(三) 工程部署
FastAPI 工程管理(一) 工程目录管理
FastAPI 工程管理(二) 工程设置
FastAPI 进阶知识(六) 启动-关闭事件
Copyright © 2011-2022 走看看