September 2006 Entries

Async web page execution using PageAsyncTask
At today's .NET user group meeting someone asked about doing async tasks in an ASP.NET page and not blocking. Here is one option in all it's g(l)ory: The ASPX @page directive gains a AsyncTimeOut="3" which will make it wait up to 3 seconds for the async task to complete. Since the operation itself does not actually use an external resource, a fake out of the AsyncResult is done using a delegate and a BeginInvoke on it which yields the IAsyncResult that BeginEventHandler is expected to return and ......

Posted On Monday, September 11, 2006 9:12 PM | Comments (3)