ASP to continue processing.

S

Sam

i'm writing a VB.NET component that gets called from an ASP page. i want
the component to continue to process while it sent back a response to the
asp page that it's ok. how do i declare that the component to conintue to
process and the asp page can go on?

i'm sending out emails and i don't need the ASP page to wait while the
component sends them.

Thanks
 
G

Girish Bharadwaj

Look into ThreadPool.QueueUserWorkItem() method. Its basically what you
would need to implement.
 
G

Girish bharadwaj

I meant ThreadPool to be used not implemented. If that is what I said, sorry
of misleading.
 
L

Lucas Tam

Sam said:
i'm sending out emails and i don't need the ASP page to wait while the
component sends them.

You can create a new thread, launch the process in the thread, while in the
main thread send a return value.
 
S

Sam

i tried to use the following but i keep getting an error "does not have the
same signature as dilegate Sub TreadStart"

Dim m As New mycomponent.myclass

Dim t As Thread = New Thread(AddressOf m.send)

but, "m.send" happens to be a method within an external DLL. How do i tell
"Thread" where my method is?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top