<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %><!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>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="upl" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:UpdateProgress ID="UpdateProgress1" runat="server">
<ProgressTemplate>
<div>
<div>
数据加载中,请等待……
</div>
</div>
</ProgressTemplate>
</asp:UpdateProgress>
dfdfdf
</ContentTemplate>
</asp:UpdatePanel>
</div>
</form>
</body>
</html>
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
Thread.Sleep(8000);
}
}
}
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="upl" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:UpdateProgress ID="UpdateProgress1" runat="server">
<ProgressTemplate>
<div>
<div>
数据加载中,请等待……
</div>
</div>
</ProgressTemplate>
</asp:UpdateProgress>
dfdfdf
</ContentTemplate>
</asp:UpdatePanel>
</div>
</form>
</body>
</html>
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
Thread.Sleep(8000);
}
}
}
解决方案 »
- Vs2008發佈
- 帮我看看我这个Silverlight安装问题,看看我这个vs2008版本是什么
- 打开电影出现了英文,寻解决方法,如图
- 还是Menu问题,大家帮帮忙
- 在模板列中如何取得checkbox状态变化事件?
- 遍历母版页中子控件的问题,一个超级奇怪的问题
- 在C#开发的ASP。NET环境下如果生成Word,和Excel文件?
- 100分,在线求xml格式使用xslt转换(其它方法也行)
- System.NullReferenceException: 未将对象引用设置到对象的实例,在线等待。。
- 很簡單,,刷新數據庫問題....在線等待,馬上加分!!!
- 这种像c#的格式用什么编辑器来实现?
- 为什么My97DatePicker时间空间在我的机器上不能用,触发事件执行的是后退操作
<title>页面提交时出现等待窗口示例</title>
<head>
<SCRIPT LANGUAGE="JavaScript">
<!--
//By Dicky 2005-2-17 11:16:49
function Window_Load(Flag)
{
if (Flag == 0)
{
document.all['Loading'].style.display = 'block';
//show the window
}
else
{
document.all['Loading'].style.display = 'none';
//hide the window
}
}
//-->
</SCRIPT>
</head>
<body leftMargin=0 topMargin=50 >
<div id="Loading" style="position:absolute;z-index:3;top:200px;left:250px;width:250;height:60;border-width:1;border-style:ridge;background-color:green;padding-top:10px"><center><table border="0"><tr><td valign="middle"><img src="cursor.gif" border="0" WIDTH="30" HEIGHT="30"></td><td> </td><td valign="middle"><span id=txtLoading0 style="font-size:14px;">正在初始化页面,请稍候...</span><br><span id=txtLoading1 style="font-size:14px;">Loading,please wait...</span></td></tr></table></center></div>
<form name="form1" method="post" action="" >
<center>页面提交时出现等待窗口示例<input name=submit type=submit value='提交'>
</center>
</form>
</body>
</html>http://www.zaoxue.com/article/tech-60961.htm
<ProgressTemplate> 等待服务器响应 </ProgressTemplate>
</asp:UpdateProgress>
<head runat="server">
<title>无标题页</title>
<script type="text/javascript">
var Page;
var postBackElement;
function pageLoad()
{
Page = Sys.WebForms.PageRequestManager.getInstance();
Page.add_beginRequest(OnBeginRequest);
Page.add_endRequest(endRequest);
}
function OnBeginRequest(sender, args)
{
$get("IMGDIV").style.display="";
}
function endRequest(sender, args)
{
$get("IMGDIV").style.display="none";
}
</script></head>
<body>
<form id="form1" runat="server">
<DIV id="IMGDIV" style="display:none;position:absolute;left: 35%;top: 25%;vertical-align:middle;border-style:inset;border-color:black;background-color:White;z-index:40;">
<img src="loading.gif" />
</DIV> </form>
</body>
</html>
document.getElementById("loadDiv").parentNode.removeChild(document.getElementById("loadDiv"));
思想就是控制div层的出来和进取