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
>
查看全文
相关阅读:
ExIco应用程序图标保存器1.0发布
Object.defineProperty
es6代理 proxy 学习
node js学习记录
css默认值列表
关于 keyup keydown keypress
转载一篇关于css选择器的,很透彻
......图片上传
mimi
css 开发心得
原文地址:https://www.cnblogs.com/thcjp/p/487625.html
最新文章
第四章、深入理解vue组件
深克隆浅克隆
Vue封装注册全局的组件
es6解构
webpack4 之html-webpack-plugin
vue详解
vue.use
Nginx
手机话费充值数据接口 话费充值功能接入
移动联通基站接口以及电信基站接口分享
热门文章
国内最受欢迎的7大API供应平台对比和介绍
人生的价值在于对社会有用
我自己的一些对计算机技术和电子技术的想法
科技的未来
无尽的未来
年轻人迷恋游戏是不对的
CSys 128位CPU及计算机模拟与中英文双语编程环境
GEditor 2.0 介绍
颜色找找看MatchQ 1.0
电子与微电子工业版图编辑器GEditor1.0
Copyright © 2011-2022 走看看