如何在事件执行的过程中页面给出“正在执行”的提示,执行完成后提示自动消失?
因为事件执行的时间比较长,这样的提示让用户不会觉得是死机~~
找了半天也不知道怎么解决~~
谢谢大家指导~~
因为事件执行的时间比较长,这样的提示让用户不会觉得是死机~~
找了半天也不知道怎么解决~~
谢谢大家指导~~
解决方案 »
- 求一MM/DD/YYYY格式判断的正则表达式 例如 07/26/2010。
- 谁有高手帮我解决下,着急啊!!!!页面上的为空的问题!本人新手啊
- 谁能解决这样一个难题:由于在Web页上不能显示TIF图片,我用VB做了一个OCX,放到Web页面上,但是,这个OCX只能作为客户端控件使用,怎么用它来访问服务器端的图片啊?
- [求助]哪位兄弟能够提供一下九品御厨的论坛代码下载,多谢了
- 我想用c#三层结构的oa换c#三层结构的全站程序学习。
- 这样的datagrid怎样事项__-100分
- 不知道大家在验证码中的干扰点是怎么做的,我一点思路都没有
- AspNetPager控件分页问题,急啊!!!(只有100分了)
- WEBFORM改装到MVC
- 很简单的问题,不看后悔.....
- ********各位我几天研究的缓存写入数据库,请看看,
- JS控制服务器控件的Enable属性的问题。
2.Response.write("<span id=s1>正在输出</span>")
3.执行长时间操作
4.输出可以让s1隐藏的脚本
xmlHttp.open("get","url",true);语句之前,用js插入“正在执行,请稍后...”的提示然后
if(xmlHttp.readyState==4&&xmlHttp.status==200){
//这里清除掉“正在执行,请稍后...”
}
<head runat="server">
<title> Untitled Page </title>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<asp:UpdateProgress ID="UpdateProgress1" runat="server">
<ProgressTemplate>
<img alt="" src="b3.gif" /> 数据加载中
</ProgressTemplate>
</asp:UpdateProgress>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:TextBox ID="TextBox1" runat="server"> </asp:TextBox> <asp:Button ID="Button1"
runat="server" Text="Button" OnClick="Button1_Click" />
<asp:Label ID="Label1" runat="server"> </asp:Label>
<asp:Timer ID="Timer1" runat="server" Interval="1000" OnTick="Timer1_Tick1">
</asp:Timer>
</ContentTemplate>
</asp:UpdatePanel>
</form>
</body>
</html> 详细的 请看 http://hi.baidu.com/tree3200/blog/item/a4c69e4bd78b3af483025c45.html
window.onload=function(){
var a = document.getElementById("loading");
a.parentNode.removeChild(a);
}
document.write('<div id="loading" style="background:#CC4444;color:#FFF;width:100%;padding-left:5px;position:absolute;line-height:500px">正在读取...</div>');
</script>
<body style="margin:0px;padding:0px;font-size:12px;overflow-y:hidden">
<iframe src="http://192.0.1.30:8080/agac/index.aspx" width="100%" height="100%" frameborder="0" marginwidth="0" marginheight="0"></iframe>
</body>