当前位置: 代码迷 >> ASP.NET >> ftp进度条 求教解决方案
  详细解决方案

ftp进度条 求教解决方案

热度:2731   发布时间:2013-02-25 00:00:00.0
ftp进度条 求教

      while (contentLen != 0)
                {
                    
                    // 把内容从file stream 写入 upload stream
                    strm.Write(buff, 0, contentLen);
                    contentLen = fs.Read(buff, 0, buffLength);

                    UPLoadSize += contentLen;

                   this.lbl_ftpStakt.Text = "已下载:" + (int)(UPLoadSize / 1024) + "KB/"; //lbl控件
                  //myProgressControl.Value = startbye;
                  //Application.DoEvents();
                  
                    Thread.Sleep(5);
                 this.CurrentTime.Text = "已下载:" + (int)(UPLoadSize / 1024) + "KB/"; //lbl控件 外部有局部刷新
                }


我的问题是怎样在lbl控件的值在页面中不断变化
------最佳解决方案--------------------------------------------------------
你这样写 估计达不到你要的效果哦。
可以去参考一个flash的上传组件 那个里面有进度条。
------其他解决方案--------------------------------------------------------
SWFUpload 
------其他解决方案--------------------------------------------------------
如果你要自己去写 估计要换下思路 可以考虑 SL 或者FLASH来实现 
------其他解决方案--------------------------------------------------------
引用:
你这样写 估计达不到你要的效果哦。
可以去参考一个flash的上传组件 那个里面有进度条。


我想这样估计也行吧,也许我少加了什么,在帮忙想想
  呵呵,我现在去看下flash的  swfUpload
------其他解决方案--------------------------------------------------------
快下班了
       自己先小顶一下 
                     帮帮忙
------其他解决方案--------------------------------------------------------
哎 真伤心 为什么就没有了
------其他解决方案--------------------------------------------------------
我也遇见同样的困惑
  相关解决方案