有人实现过framework1.1的文件上传进度显示吗?

解决方案 »

  1.   

    http://www.codeproject.com/aspnet/File_Upload_Progress_Bar.asp
      

  2.   

    链接中的方法如下有什么作用?
    http://www.codeproject.com/aspnet/File_Upload_Progress_Bar.aspprivate void PushRequestToIIS(HttpWorkerRequest request, 
                byte[] textParts)
            {
                BindingFlags bindingFlags = BindingFlags.Instance 
                          | BindingFlags.NonPublic; 
                Type type = request.GetType();
                while ((type != null) && (type.FullName != 
                     "System.Web.Hosting.ISAPIWorkerRequest"))
                    type = type.BaseType;             if (type != null)
                {
                    type.GetField("_contentAvailLength", 
                      bindingFlags).SetValue(request, textParts.Length); 
                    type.GetField("_contentTotalLength", 
                      bindingFlags).SetValue(request, textParts.Length);
                    type.GetField("_preloadedContent", 
                      bindingFlags).SetValue(request, textParts); 
                    type.GetField("_preloadedContentRead", 
                      bindingFlags).SetValue(request, true);
                }
            }