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
>
查看全文
相关阅读:
Linux内核的总结认识
服务器的基本问题避免
Linux中多线程信号的处理
gdb调试
TCP数据包的封包和拆包
网络TCp数据的传输设计(黏包处理)
InputArray和OutputArray
UTF8转unicode说明
C++使用标准库的栈和队列
resize函数有五种插值算法
原文地址:https://www.cnblogs.com/ma/p/731632.html
最新文章
zabbix服务端安装配置
zabbix proxy安装配置
percona-zabbix-templates插件安装监控MySQL
keepalived实现nginx的高可用
MySQL备份工具percona-xtrabackup安装
redis主从配置
mongodb主从配置
shiro授权
shiro入门
linux系统日常管理
热门文章
SHELL 脚本
正则表达式
学习 shell脚本之前的基础知识
文档的压缩与打包
文本编辑工具vim
Linux磁盘管理
linux系统用户以及用户组管理
sleep()函数的的意义
C语言 断言 总结
C语言获取时间
Copyright © 2011-2022 走看看