Skip to main content

Posts

Showing posts from September, 2008

Asynchronous pages in C# - When to Use It?

When do we need asynchronous page in ASP.net. Suppose you have a website with two web pages. One is your home page which display's a greeting, and the second page displays a large dataset from a database. You have 25 threads in your thread pool. 25 people simultaneously are accessing the database query page, and one additional person comes onto the site to see the home page which has static content on it. http://davidjberman.com/blogs/csharp/archive/2007/08/13/how-to-create-asynchronous-asp-net-pages-using-c.aspx

How to Send Many Parameters to the Thread

There are some ways to send number of parameters to the new created thread. 1. Creating a new instance of a class, and using that instance to store the information 2. Using ThreadPool to send parameters 3. Calling a delegate asynchronously More detailed information can be found at: http://www.yoda.arachsys.com/csharp/threadstart.html