zoukankan
html css js c++ java
UpdatePanelAnimation控件
功能:
UpdatePanelAnimation控件用来装饰UpdatePanel更新的效果,提供对UpdatePanel更新时和更新后的特效,并允许用户定义这些特效。定义的语法与“Animation”控件类似。
属性:
TargetControlID:要应用特效的UpdatePanel的ID。
OnUpdating:更新时应用的特效。
OnUpdated:更新后应用的特效。
代码实例:
<
html
xmlns
="http://www.w3.org/1999/xhtml"
>
<
head
runat
="server"
>
<
title
>
UpdatePanelAnimation
</
title
>
</
head
>
<
body
>
<
form
id
="form1"
runat
="server"
>
<
ajaxToolkit:ToolkitScriptManager
ID
="ToolkitScriptManager1"
runat
="server"
>
</
ajaxToolkit:ToolkitScriptManager
>
<
asp:UpdatePanel
ID
="UpdatePanel1"
runat
="server"
UpdateMode
="Conditional"
>
<
ContentTemplate
>
单击按钮后,会改变时间的背景颜色
<
br
/>
<
asp:Label
ID
="Label1"
runat
="server"
Text
=''
></
asp:Label
>
<
br
/>
<
asp:Button
ID
="Button1"
runat
="server"
Text
="Button"
onclick
="Button1_Click"
/>
</
ContentTemplate
>
</
asp:UpdatePanel
>
<
ajaxToolkit:UpdatePanelAnimationExtender
ID
="UpdatePanelAnimationExtender1"
runat
="server"
TargetControlID
="UpdatePanel1"
>
<
Animations
>
<
OnUpdated
>
<
Sequence
>
<
Parallel
duration
="2"
Fps
="30"
>
<
Color
StartValue
="#ff3f3f"
EndValue
="#ffffff"
Property
="style"
PropertyKey
="backgroundColor"
/>
</
Parallel
>
</
Sequence
>
</
OnUpdated
>
</
Animations
>
</
ajaxToolkit:UpdatePanelAnimationExtender
>
</
form
>
</
body
>
</
html
>
后台代码:
protected
void
Page_Load(
object
sender, EventArgs e)
{
this
.Label1.Text
=
DateTime.Now.ToString();
}
protected
void
Button1_Click(
object
sender, EventArgs e)
{
System.Threading.Thread.Sleep(
3000
);
}
运行结果:
单击提交按钮后
查看全文
相关阅读:
怎样编写一个Photoshop滤镜(1)
蜂窝状网格的定位方法
【转载】[TC]飞船动画例子《C高级实用程序设计》
【完全随笔】用户体验和设计
在 WinCe 平台读写 ini 文件
关于携带完整 alpha 通道图标的技术研究
【转载】When should static_cast, dynamic_cast and reinterpret_cast be used?
怎样编写一个Photoshop滤镜(3) Scripting Plugins
配电网WebGIS研究与开发[5]
配电网WebGIS研究与开发[4]
原文地址:https://www.cnblogs.com/abcdwxc/p/959424.html
最新文章
REPLICATE(ByVal value As String, ByVal count As Integer)
该死的SQL Job Script
VML Chart Version 1.0
Study ISA 2004
[ASP.NET] 将Session值储存于SQL Server中.
MSN协议开发资源
SQL Server Reporting Service 简介 (1~6PDF)
推荐好书: 学会站着说话.
我的工资条!
关于通达信数据格式的发布
热门文章
怎样手工解决广州大学华软学院病毒(读软驱)
VB2005读取文本文件乱码的解决方法
解决VS2005中异常助手与编辑并继续(edit and continue)无效的具体方法
MSDN Library for Visual Studio 2005 中文版(疯狂下载中)
VB2005代码与通达信数据格式
偶然发现SQL2005中文版里有vs2005中文安装包
向各位求救
vb.net2005的一些小退步
怎样编写一个Photoshop滤镜(4) 在对话框上增加缩略图
[完全随笔]日志线程的线程同步
Copyright © 2011-2022 走看看