...

View Full Version : DoEvents in ASP.NET



esb01
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 -
FileToSave.PostedFile.SaveAs(filename)

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?

nikkiH
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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum