Sometimes you need to run operations behind the scenes, in a different thread from the one that ASP.NET Framework uses to process Web Pages. Multitasking in Web Pages can be quite tricky and difficult cause meshing with threads can make your pages not responding. Several tutorials exist out on internet about supporting background processes in .NET, but most of them are applied in Windows Forms. If you try to run the same code in ASP.NET Web Forms Application you will probably be disappointed by the fact that pages don't work pretty well (they usually hang). This post will show you how to use a BackgroundWorker class in order to run background processes in ASP.NET Web Forms. The idea is this: We are going to create a UI and let the user to add Person objects to a list of Person. The Person class will be the following:


I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.

Stay tuned to my blogtwitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.


This article is related to

C#,.NET,Architect,Intermediate,VS2010,.Net,Articles,Computer Tutorials, ASP.Net