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
>
查看全文
相关阅读:
centos 7.5 snmp 安装
centos 7.5 telnet 离线安装
使用httpClient发送请求(支持https)
kafka基本概念
List根据时间字符串排序
mac安装yosys遇到`dyld: malformed mach-o image`报错
ctags的--exclude选项
每周分享(3)
实践OKR极易出现的四大误区
从OKR小白到成功落地OKR(三)
原文地址:https://www.cnblogs.com/gwazy/p/1015080.html
最新文章
Java项目之间接口调用方式
机器学习-tensorflow优化器
机器学习-tensorflow tf.keras使用独立编码与交叉熵损失函数
字典表树状结构最简单的方法
APP自动化Android特殊控件Toast识别
linux 解决"zsh: no matches found"
佳源名门橙邦丽橙苑业主群
[翻译]使用MySQL和PHP PDO创建简单的PHP CRUD REST API
[学习]php对象序列化和反序列化
[学习]php 变量范围
热门文章
[学习] php对象
[学习]php 重载
[学习] php 类
[学习]php 赋值
AutoService
用Goaccess对Nginx进行性能监控windows版
keepalived yum安装后启动报错解决
用CSS修改滚动条样式
Docker-02-常用命令
1.centos 7.5 添加账号用户名
Copyright © 2011-2022 走看看