Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.1
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 7th, 2005, 09:44 AM
Authorized User
 
Join Date: Jul 2004
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default Asynchronous threads in web app.

Given some database queries and server tasks that deals with large result sets and cause the calling application to be unresponsive, what is a good way to make asynchronous calls in ASP.NET web applications? For e.g. creating a background thread and use it to run a query to fill a DataSet or a thread that involves intense server side processing. The technique used in form application is not applicable here since Page class does not contain a BeginInvoke() method to make asynchronous calls. Anyone can offer some advice?
Yubo

 
Old January 14th, 2005, 05:04 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

I have just recently made a very crude attempt at this very task.

I created a thread object with the address of the method I wish to act upon. Then I start the thread and place the thread in an Application scope variable. This way the thread can be reloaded so you can check it's state. Any instance of that page will see the thread (because it's application scope). Only when the thread is not running can the process that starts it be run. I'm sure that this is not the best idea but it seemed to work for me. I'm not sure what the implications are regarding object cleanup and such.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Interface between web app and win app alienaheart ASP.NET 2.0 Professional 4 August 4th, 2009 09:29 AM
TBH converted from web project to web app. htorres BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 0 August 25th, 2008 12:44 AM
Convert a VB.Net app to a web app? furjaw VB.NET 3 September 24th, 2007 12:27 PM
Problems with threads. Threads disappearing? DriesNeyrinck VB.NET 0 June 10th, 2003 08:26 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.