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
);
}
运行结果:
单击提交按钮后
查看全文
相关阅读:
RabbitMq(四)远程过程调用RPC
RabbitMq(三)交换机类型
RabbitMq(二)工作队列
java基础知识01--JAVA准备
匿名子类
网络之Socket详解
网络之Socket、TCP/IP、Http关系分析
Eclipse搭建springboot项目(九)常用Starter和整合模板引擎thymeleaf
Vue学习——Router传参问题
sql函数——find_in_set()
原文地址:https://www.cnblogs.com/abcdwxc/p/959424.html
最新文章
Django-rest-framework --- jwt认证规则
day 71 作业
Django-rest-framework --- 序列化与反序列化
drf --- 序列化实操
Django-rest-framework --- 五大模块
Django-rest-framework --- 基础简介
pycharm鼠标更改字体大小
Mac安装vue.js开发环境
Vue --- 前后台总结
Mysql 主从复制原理---介绍
热门文章
python语句中的 end=' ' 的作用
VirtualBox虚拟机的安装
kafka消息中间件-python实现 -实现数据生产和消费-实用的脚本
linux-Ubuntu14.04-安装python2+/python3+及创建python2 和python3 的虚拟环境
linux下服务器部署
Tornado快速入门
Tornado初始一
Active Directory 简介
RabbitMQ 日志
搭建高可用RabbitMQ镜像集群
Copyright © 2011-2022 走看看