是不是需要用response.buffer=ture和Response.Flush来结合使用呢.是不是Response.Flush可以把当前缓冲区内的内容输出呢.那假如我需要反复输出,是不是要Response.Flush好几次.

解决方案 »

  1.   

    机器里没IIS。代码未测试。表达下思路。而已。
    ------------------------------------
    <%
    Dim strJs,idxCount
    idxCount = 1Do until rs.Eof
      strJs = "<script>"& vbcrlf
      strJs = strJs & "RsMsg.innerText = " & idxCount & "/" & rs.RecordCount & vbcrlf
      strJs = strJs & "</script>"& vbcrlf
      Response.Write strJs
      idxCount = idxCount +1
      rs.MoveNext
    Loop
    %><div id="RsMsg"></div>
      

  2.   

    谢谢楼上的.我想清空上次输出.只输出一条信息,怎么做呢.不需要Response.Flush来逐步输出缓冲区数据吗