Wrox Programmer Forums
|
ASP Pro Code Clinic As of Oct 5, 2005, this forum is now locked. No posts have been deleted. Please use "Classic ASP Professional" at: http://p2p.wrox.com/forum.asp?FORUM_ID=56 for discussions similar to the old ASP Pro Code Clinic or one of the other many remaining ASP and ASP.NET forums here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Pro Code Clinic 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 August 16th, 2004, 07:27 AM
Registered User
 
Join Date: Aug 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default ASP processes running in background

I have designed an ASP application which messages many users after certain data is uploaded by other users. The messaging could take some time, so I want to run it as a background process. There is no output to any user needed after the original user triggers the process, so I want to free this user. Therefore I need soem program to run in the background. ASP.Net has a thread class which could be used to start a new server thread and close the client thread, but now I have decided to use SQL Server triggers to call a C# executable which will take care of the messaging. I have two questions: Firstly, how can I call an executable from ASP which will run as a background process? (ie return nothing and allow ASP screen page to finish). Does wscript.shell allow control back to ASP while the program it calls is executing? Secondly, with the webpage used as a trigger written in ASP, I was trying to use server.transfer to transfer program control from as .asp to an .aspx page, where I would use the thread class, but this is not possible. So I tried to use response.redirect, but I cannot sort out the 'ASP 0156 : 80004005' headers problem, even with response.buffer or response.clear - I do not want to redesign my code, it is complicated and would take weeks to redesign. If I can't use wscript.shell to run processes in the background, I will use SQL Server triggers. Any advice? Please do not ask for code... (all very straightforward really). Thanks.

 
Old August 16th, 2004, 07:48 AM
Registered User
 
Join Date: Aug 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I mean I have not yet written the code for the background process, but I just want to trigger it as effectively as possible. (Time = money)!






Similar Threads
Thread Thread Starter Forum Replies Last Post
running application in background. akhilhp Visual Basic 2005 Basics 3 September 7th, 2008 10:19 AM
CSS Background images not loading in ASP.NET 2.0 vinyel23 ASP.NET 2.0 Basics 0 January 5th, 2007 12:54 PM
ASP..NET (Background VB) to Linux Srivathsan Linux 1 February 20th, 2004 04:52 AM
Placing processes in the background ohwail C++ Programming 2 September 10th, 2003 11:47 AM
get all running processes in all windows OS atingoldy VB How-To 0 June 23rd, 2003 02:28 AM





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