ASP to continue processing.

  • Thread starter Thread starter Sam
  • Start date Start date
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
 
Look into ThreadPool.QueueUserWorkItem() method. Its basically what you
would need to implement.
 
I meant ThreadPool to be used not implemented. If that is what I said, sorry
of misleading.
 
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.
 
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?
 
Back
Top