zoukankan
html css js c++ java
asp.net ajax 提交中,暂停提交
from msdn
protected
void
Button1_Click(
object
sender, EventArgs e)
{
System.Threading.Thread.Sleep(
3000
);
Label1.Text
=
System.DateTime.Now.ToString();
}
<%
@ Page Language
=
"
C#
"
AutoEventWireup
=
"
true
"
CodeBehind
=
"
WebForm1.aspx.cs
"
Inherits
=
"
WebApplication1.WebForm1
"
%>
<!
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
>
Untitled Page
</
title
>
</
head
>
<
body
>
<
form
id
="form1"
runat
="server"
>
<
div
>
</
div
>
<
asp:ScriptManager
ID
="ScriptManager1"
runat
="server"
>
</
asp:ScriptManager
>
<
script
type
="text/javascript"
>
var
prm
=
Sys.WebForms.PageRequestManager.getInstance();
prm.add_initializeRequest(InitializeRequest);
function
InitializeRequest(sender, args)
{
if
(prm.get_isInAsyncPostBack())
{
args.set_cancel(
true
);
}
}
function
AbortPostBack()
{
if
(prm.get_isInAsyncPostBack())
{
prm.abortPostBack();
}
}
</
script
>
<
asp:UpdatePanel
ID
="UpdatePanel1"
runat
="server"
>
<
ContentTemplate
>
<
asp:Button
ID
="Button1"
runat
="server"
Text
="Button"
onclick
="Button1_Click"
/>
<
asp:Label
ID
="Label1"
runat
="server"
Text
="Label"
></
asp:Label
>
</
ContentTemplate
>
</
asp:UpdatePanel
>
<
asp:UpdateProgress
ID
="UpdateProgress1"
runat
="server"
>
<
ProgressTemplate
>
正在加载数据!
<
br
/>
<
input
type
="button"
value
="stop"
onclick
="AbortPostBack()"
/>
</
ProgressTemplate
>
</
asp:UpdateProgress
>
</
form
>
</
body
>
</
html
>
查看全文
相关阅读:
bzoj 4451 : [Cerc2015]Frightful Formula FFT
bzoj 3928: [Cerc2014] Outer space invaders
HDU 5306 线段树
bzoj 1914: [Usaco2010 OPen]Triangle Counting 数三角形
bzoj 4519: [Cqoi2016]不同的最小割 最小割树
bzoj : 4504: K个串 区间修改主席树
bzoj 4332:JSOI2012 分零食
bzoj 2595 : [Wc2008]游览计划
poj 3683 Priest John's Busiest Day
bzoj 1823: [JSOI2010]满汉全席 && bzoj 2199 : [Usaco2011 Jan]奶牛议会 2-sat
原文地址:https://www.cnblogs.com/gwazy/p/1015080.html
最新文章
BZOJ2298: [HAOI2011]problem a
BZOJ2423: [HAOI2010]最长公共子序列
BZOJ3653: 谈笑风生
BZOJ1048: [HAOI2007]分割矩阵
BZOJ3853: GCD Array
BZOJ3757: 苹果树
省选前作业题汇总4
解题:BZOJ 2989 数列
2019.3.7考试
省选前的动态规划大杂烩
热门文章
2019.3.5考试
省选前作业题汇总3
解题:BZOJ 5093 图的价值
解题:国家集训队 Crash 的文明世界
解题:NOI 2010 航空管制
bzoj 4820: [Sdoi2017]硬币游戏
bzoj 3672 购票 点分治+dp
3532: [Sdoi2014]Lis 最小字典序最小割
杜教筛 模板
hdu 5852 :Intersection is not allowed! 行列式
Copyright © 2011-2022 走看看