AspNetAtoms.com daily updates on ASP.NET Tutorials, Articles, Authors and more. Subscribe to our newsletter and receive updates on ASP.NET resources on the Internet.

Categories

Recent Posts

ASP.NET: Long Running Tasks with Page Feedback : Peter A Bromberg

Tuesday, July 08 2008

We often get questions about how to provide feedback in an ASP.NET page when something is going on in the background. A lot of times developers get confused about the difference between running a task asynchronously and running a task on a background thread. While these are similar operations, they have many differences. "Asynchronous" implies the use of a callback mechanism. Just kicking off a method on a separate thread does not make it asynchronous (although, as in this example, that is all we really need to do). The key determinant of whether a method is being called asynchronously is whether a method name prefixed with "BeginXXX" is used, where "XXX" is the method name. Many .NET classes have built-in asynchronicity for their methods, and if they don't, you can still run any method asynchronously by using a delegate. I have a previous article about how to send emails asynchronously that illustrates this....

Read More:
ASP.NET: Long Running Tasks with Page Feedback : Peter A Bromberg
Also See:
Watermarking PDF documents using HttpHandlers : Deepak Raghavan
Build More Scalable Sites : Peter Vogel
Make your ASP.NET Application Install It's Own Database : Peter A Bromberg
Inversion of Control and Dependency Injection with Castle Windsor Container - Part II : Simone Busoli
Using Web Standards to Simplify Web Control Development : Steven Berkovitz

Post your comment

Comment