|
Posted on
2009-10-18 18:37
X龙
阅读( 269)
评论()
编辑
收藏
举报
在后台事件代码中添加如下代码:
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif) Code float len = FileUpload1.PostedFile.ContentLength; float percent = len / 100; float vector = percent / 10;
jsBlock = "<script>Start1(0);SetCompleted('正在导入中,请稍后。。。'); </script>"; Response.Write(jsBlock); Response.Flush();
for (float i = 0; i <= len; i += vector) { jsBlock = "<script>SetPorgressBar('" + "导入进度:%" + i/percent + " ','" + i/percent + "'); </script>"; Response.Write(jsBlock); Response.Flush(); } jsBlock = "<script>SetCompleted('处理完成。'); Start1(1)</script>"; Response.Write(jsBlock); Response.Flush();
其中使用了progressBar.htm。 下载
|