zoukankan
html css js c++ java
用ajax打造和gmail一样的加载进度条显示!(原创)
<%
@ Page Language
=
"
C#
"
AutoEventWireup
=
"
true
"
CodeFile
=
"
Default2.aspx.cs
"
Inherits
=
"
Default2
"
%>
<
script
runat
="server"
>
void
Button1_Click(object sender, EventArgs e)
{
this
.Label1.Text
=
"
更新时间:
"
+
System.DateTime.Now.ToString();
System.Threading.Thread.Sleep(
2000
);
}
void
Button2_Click(object sender, EventArgs e)
{
this
.Label1.Text
=
"
更新时间:
"
+
System.DateTime.Now.ToString();
}
</
script
>
<
html
xmlns
="http://www.w3.org/1999/xhtml"
>
<
head
runat
="server"
>
<
title
>
UpdatePanel Trigger Sample
</
title
>
</
head
>
<
body
>
<
form
id
="form1"
runat
="server"
>
<
div
>
<
asp:ScriptManager
ID
="ScriptManager1"
runat
="server"
>
</
asp:ScriptManager
>
<
asp:UpdateProgress
ID
="UpdateProgress1"
runat
="server"
>
<
ProgressTemplate
>
<
div
style
="left: 0px; 127px; position: relative; top: 0px; background-color: #ffcc33; float: right;"
>
正在处理
</
div
>
</
ProgressTemplate
>
</
asp:UpdateProgress
>
</
div
>
<
asp:UpdatePanel
ID
="UpdatePanel1"
runat
="server"
>
<
ContentTemplate
>
<
div
>
<
asp:Button
ID
="Button1"
runat
="server"
Text
="异步回送"
OnClick
="Button1_Click"
/>
<
br
/>
<
br
/>
<
asp:Label
ID
="Label1"
runat
="server"
Text
="当前时间"
Font-Bold
="True"
Font-Size
="Large"
></
asp:Label
></
div
>
</
ContentTemplate
>
<
Triggers
>
<
asp:AsyncPostBackTrigger
ControlID
="Button1"
/>
<
asp:PostBackTrigger
ControlID
="Button2"
/>
</
Triggers
>
</
asp:UpdatePanel
>
</
form
>
</
body
>
</
html
>
查看全文
相关阅读:
RegExp.$1
Wide&Deep 模型学习教程
docker 安装与使用的相关问题
Centos 防火墙
odoo ERP 系统安装与使用
Linux 开机自动启动脚本
intel RDT技术管理cache和memory_bandwidth
tensorflow 中 inter_op 和 intra_op
centos 7 安装 nginx 或 apache,及其比较
Dependency injection in .NET Core的最佳实践
原文地址:https://www.cnblogs.com/ma/p/731632.html
最新文章
如何阻止点击scrollviewer里面的单位内容时,自动滚动
RabbitMq + Spring 实现ACK机制
简述负载均衡和 CDN 技术
Linux 服务器的那些性能参数指标
TreeMap按照key排序
HashMap源码分析(基于JDK1.6)
HashMap的工作原理
Redis 有序集合(sorted set)
Redis 集合(Set)
Redis 列表(List)
热门文章
Redis 哈希(Hash)
单页面vue引入百度统计的使用方法!
移动端h5需要注意的一些事
前端面试题总结
vue-awesome-swiper使用纪实
Parcel极速零配置Web应用打包工具
Prettier来统一代码风格
webpack+vue-cli中代理配置(proxyTable)
Vue父子组件之间通信
Vue之双向绑定原理动手记
Copyright © 2011-2022 走看看