UpdateProgress 控件--用户中断
<%@?Page?Language="C#"?AutoEventWireup="true"?CodeFile="UpdateProgress(一).aspx.cs"?Inherits="UpdateProgress_一_"?%>
<!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">
<meta?http-equiv="Content-Type"?content="text/html;?charset=utf-8"/>
????<title>無標題頁</title>
????<script?type="text/javascript">
????function?stop()
????{
????????if(Sys.WebForms.PageRequestManager.getInstance().get_isInAsyncPostBack())
????????{
????????????Sys.WebForms.PageRequestManager.getInstance().abortPostBack();
????????}
????}
????</script>
</head>
<body>
????<form?id="form1"?runat="server">
????<div>??
????<asp:ScriptManager?ID="ScriptManager1"?runat="server">
????</asp:ScriptManager>
????<asp:UpdatePanel?ID="UpdatePanel1"?runat="server">
????????<ContentTemplate>
????????????<asp:TextBox?ID="TextBox1"?runat="server"></asp:TextBox>
????????????<br?/>
????????????<br?/>
????????????<br?/>
????????????<asp:updateprogress?ID="UpdateProgress1"?runat="server">
????????????????<progresstemplate>
????????????????????<span?lang="zh-cn">數據正在讀取中..請稍后!!!</span>
????????????????????<input?type="button"?value?="取消"?onclick="stop();"?/>
????????????????</progresstemplate>??????????
????????????</asp:updateprogress>
????????????<br?/>
????????????<br?/>
????????????<br?/>
????????????<asp:Button?ID="Button1"?runat="server"?Text="Button"?onclick="Button1_Click"?/>
????????</ContentTemplate>
????</asp:UpdatePanel>???
????</div>
????</form>
</body>
</html>
轉載于:https://www.cnblogs.com/lilei/articles/1052030.html
總結
以上是生活随笔為你收集整理的UpdateProgress 控件--用户中断的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Windows 窗设计时结构
- 下一篇: oracle 触发器 和 常用内置程序包