源碼
aspx
<body>
<form id=
form
runat=
server
>
<div>
<asp:ScriptManager ID=
ScriptManager
runat=
server
>
</asp:ScriptManager>
<asp:UpdatePanel ID=
UpdatePanel
runat=
server
>
<ContentTemplate>
<asp:Label ID=
Label
runat=
server
Text=
Label
></asp:Label>
<asp:Button ID=
Button
runat=
server
Text=
文件上傳
onclick=
Button
_Click
/>
</ContentTemplate>
</asp:UpdatePanel>
<asp:UpdateProgress ID=
UpdateProgress
runat=
server
AssociatedUpdatePanelID=
UpdatePanel
>
<ProgressTemplate>文件上傳中…<img src=
images/wait
gif
/ alt=
上傳中…
> </ProgressTemplate>
</asp:UpdateProgress>
</div>
</form>
</body>
cs
public partial class _Default : System
Web
UI
Page
{
protected void Page_Load(object sender
EventArgs e)
{
}
protected void Button
_Click(object sender
EventArgs e)
{
System
Threading
Thread
Sleep(
)
this
Label
Text =
上傳完成
;
}
}
From:http://tw.wingwit.com/Article/program/ASP/201311/21795.html