Groups | Blog | Home
all groups > vb.net controls > september 2004 >

vb.net controls : ASP to continue processing.



Sam
9/22/2004 1:50:39 PM
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

Sam
9/22/2004 2:30:08 PM
Thanks. i'm thinking that writting this object will stop my problems with
timeouts!

Girish Bharadwaj
9/22/2004 5:00:27 PM
Look into ThreadPool.QueueUserWorkItem() method. Its basically what you
would need to implement.

--
Girish Bharadwaj
http://msmvps.com/gbvb
[quoted text, click to view]

Girish bharadwaj
9/22/2004 6:00:15 PM
I meant ThreadPool to be used not implemented. If that is what I said, sorry
of misleading.

--
Girish Bharadwaj
http://msmvps.com/gbvb
[quoted text, click to view]

Lucas Tam
9/22/2004 11:00:15 PM
"Sam" <smetter@yahoo.com> wrote in news:10l3pd2ci8qpj1e@corp.supernews.com:

[quoted text, click to view]

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

--
Lucas Tam (REMOVEnntp@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
Sam
9/22/2004 11:03:15 PM
Easy for you to say. can you give me some sample code for this?

Sam
9/23/2004 9:25:44 AM
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?

Jonathan Allen
9/24/2004 10:12:02 PM
You could create a wrapper class/sub that calls m.send.

--
Jonathan Allen


[quoted text, click to view]

AddThis Social Bookmark Button