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
>
查看全文
相关阅读:
maven解决“Could not calculate build plan”问题
HTTP中的重定向和请求转发的区别
(转)《杂 文》 之 教你制作一份属于自己的简历
(转)《SSO CAS单点系列》之 实现一个SSO认证服务器是这样的!
(转)《SSO CAS单点系列》之 15分钟让你了解SSO技术到底是个什么鬼!
(转)帮你深入理解OAuth2.0协议
opengl库区分:glut、freeglut、glfw、glew、gl3w、glad
OpenGL中的光照技术(翻译)
[转]gluProject 和 gluUnproject 的详解
英文版Ubuntu18.10安装搜狗输入法过程(图文并茂,亲自尝试!)
原文地址:https://www.cnblogs.com/thcjp/p/487625.html
最新文章
【VNC】Linux环境VNC服务安装、配置与使用
使用 GDB 调试多进程程序
Linux中如何查看文件的最初创建时间
C++ 模板双向不循环链表!!
Linux中用st_mode判断文件类型
sturct stat 结构体中 st_mode 的含义
话单字段!!!! 找对方法很重要!!!!
GDB中应该知道的几个调试方法 来自陈皓
C语言strchr()函数:查找某字符在字符串中首次出现的位置
tcpdump wireshark 实用过滤表达式(针对ip、协议、端口、长度和内容) 实例介绍
热门文章
超级详细Tcpdump 的用法
java反射获得泛型参数getGenericSuperclass():获取到父类泛型的类型
(转) 密码学中的“盐值 Salt”
(转)加密盐的意义和用途
spring @Qualifier注解
Mybatis怎么在mapper中用多个参数
(转)Springboot+shiro配置笔记+错误小结
Spring中基于Java的配置@Configuration和@Bean用法
spring boot controller路由 url 扫描不到问题
(转)在GitHub多个帐号上添加SSH公钥
Copyright © 2011-2022 走看看