<div id="doing" runat="server" style="Z-INDEX: 12000; LEFT: 0px; WIDTH: 100%; CURSOR: wait; POSITION: absolute; TOP: 0px; HEIGHT: 100%">
<table width="100%" height="100%">
<tr align="center" valign="middle">
<td>
<table width="169" height="62" bgcolor="#99cccc" style="FILTER: Alpha(Opacity=75); WIDTH: 169px; HEIGHT: 62px">
<tr align="center" valign="middle">
<td>页面提交中.<br>
Loading.</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<asp:Button ID="Button1" runat="server" Text="Button" />
<table width="100%" height="100%">
<tr align="center" valign="middle">
<td>
<table width="169" height="62" bgcolor="#99cccc" style="FILTER: Alpha(Opacity=75); WIDTH: 169px; HEIGHT: 62px">
<tr align="center" valign="middle">
<td>页面提交中.<br>
Loading.</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<asp:Button ID="Button1" runat="server" Text="Button" />
protected void Page_Load(object sender, EventArgs e)
{
this.Button1.Attributes.Add("onclick", "javascript:document.getElementById('doing').style.visibility='visible';");
for (int i = 0; i < 10; i++)
{
System.Threading.Thread.Sleep(1000);
}
}
override protected void OnPreRender(EventArgs e)
{
doing.Style.Add("visibility", "hidden");
}
{
this.Button1.Attributes.Add("onclick", "javascript:document.getElementById('doing').style.visibility='visible';");
for (int i = 0; i < 10; i++)
{
System.Threading.Thread.Sleep(1000);
}
}
override protected void OnPreRender(EventArgs e)
{
doing.Style.Add("visibility", "hidden");
}