These days I went out to hide from the earthquake again. I thought there was nothing left to do. I was so scared by the experts on TV that I went out and suffered another day's sin, this is like the internet saying: What is more terrible than an earthquake is aftershocks. What is more terrible than aftershocks is the prediction of aftershocks. What is worse than the prediction of aftershocks is that the prediction of aftershocks has been more terrible, but the prediction of aftershocks has not been. So this article was written a little late. Today I plan to go home and go to bed, so I wrote it as soon as I wrote it.
First, let's take a look at the display effect of my upload progress information:
How about it, just like the effect of C/S. However, as one of the previous netizens said: This relies on constantly querying servers to obtain progress information, which has an impact on improving the system concurrency. However, I want to: use ASP.. Net File Uploading application systems generally do not have too many concurrent users. The reason why ASP is used.. Net files are uploaded to improve user experience and simplify system deployment and development. It is very convenient to use this component in general information systems. Let's talk about it.
As long as the file is uploaded, it is much easier to obtain the progress information from the server. Here I use the pop-up mode window to display the progress information by refreshing the page, of course, you can also use Ajax technology to obtain progress information, or use Div labels or IFRAME instead of modal windows. However, if the mode is not modal, after the file is uploaded, the progress information disappears automatically as the page is refreshed. You can implement these methods. If you have a friend, don't forget to give me a copy.
for the Progress display, you can download my source code and see it. I will not talk about it much. I will only remind users of the following points: on the progress display page, set the label to prevent the progress information from being properly displayed under ie5.0. A new window may be opened when you refresh the page.
you can modify the response here. appendheader ("refresh", "3");, control the refresh frequency. Here, there is a balance between efficiency and user experience. If the refresh time is too small, it will increase the server load and time is too large, the progress bar will jump.
for other users, download the Source Code , my first Article contains the download of net1.1, you can download net2.0 in my next article and the last article in this series.