ASP.NET 之用AJAX设置进度条
源码:
.aspx
1
2
3
4
5
6
7
8
9
10
11
12
13 文件上传中...
14
15
16
17
.cs
1 public partial class _Default : System.Web.UI.Page
2 {
3 protected void Page_Load(object sender, EventArgs e)
4 {
5
6 }
7 protected void Button1_Click(object sender, EventArgs e)
8 {
9 System.Threading.Thread.Sleep(5000);
10 this.Label1.Text = "上传完成";
11
12 }
13 }