Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling VB COM method from ASP (Asynchronously)
Message
From
04/01/2001 17:55:25
 
 
To
04/01/2001 08:58:12
General information
Forum:
Visual Basic
Category:
Internet applications
Miscellaneous
Thread ID:
00459143
Message ID:
00459601
Views:
28
>>Not possible.
>>
>>You want to do it that way because the process takes a long time ?
>
>Yes, several minutes if the user is running for a large dataset. They want the user to be able to get live updates on the progress while the component is running but at the same time allow them to navigate away to another page. Either way, I'm supposed to redirect the browser while the component is running.


Ok, this is the way I would do it:

Your ASP page that start the process would only set a flag in a database.
An app running on the server as an EXE or better, as a service would poll the database, start the long process and update the flag table.
Your "status" page would hit the flag table and can display the status to the user.

This way, your ASP pages are never tied up with long process and your application can scale:
1-If your process eat to much CPU, you can move it to it's own PC.
2-That way, you can serve a Web farm.
Guy Barrette, MCSD
============
Blog http://weblogs.asp.net/guybarrette
Microsoft Regional Director, Montreal, Canada www.microsoft.com/rd
MVP, ASP.NET http://mvp.support.microsoft.com/
President, Montreal Visual Studio User Group www.guvsm.net
INETA Regional Rep for Quebec www.ineta.org
UniversalThread Magazine Columnist (.NET Books Review Column) www.utmag.com
Tech Chair French Track, DevTeach 2004 & 2005 www.devteach.com
Business Architect, Microsoft Team - Nurun Inc www.nurun.com
XBox Live Gamer Tag: Slomo QC CA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform