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.
 
Thanks. i'm thinking that writting this object will stop my problems with
timeouts!
 
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?
 

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

Back
Top