View Full Version : DoEvents in ASP.NET

02-16-2007, 06:35 PM
I have the following tag -
<input id="FileToSave" type="file" runat="server">
and use the following method to upload files to the server -

Can anybody tell me if this is a blocked method? In other words does it need something like DoEvents if the file to save is pretty large? And if yes, how to implement DoEvents in ASP.NET?

02-16-2007, 08:04 PM
It is blocking.
Unless there was something else you wanted the web page itself to do while the file is being saved, there is no need for DoEvents. (DoEvents isn't applicable, either, but you could do your own threading)

The server takes care of threading for web forms and it won't kill your server. Each AppDomain has its own thread.