473,322 Members | 1,232 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

ASP to continue processing.

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
Nov 21 '05 #1
10 1365
Look into ThreadPool.QueueUserWorkItem() method. Its basically what you
would need to implement.

--
Girish Bharadwaj
http://msmvps.com/gbvb
"Sam" <sm*****@yahoo.com> wrote in message
news:10*************@corp.supernews.com...
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

Nov 21 '05 #2
Sam
Thanks. i'm thinking that writting this object will stop my problems with
timeouts!
Nov 21 '05 #3
I meant ThreadPool to be used not implemented. If that is what I said, sorry
of misleading.

--
Girish Bharadwaj
http://msmvps.com/gbvb
"Sam" <sm*****@yahoo.com> wrote in message
news:10*************@corp.supernews.com...
Thanks. i'm thinking that writting this object will stop my problems with
timeouts!

Nov 21 '05 #4
"Sam" <sm*****@yahoo.com> wrote in news:10*************@corp.supernews.com:
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.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 21 '05 #5
"Sam" <sm*****@yahoo.com> wrote in news:10*************@corp.supernews.com:
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.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 21 '05 #6
Sam
Easy for you to say. can you give me some sample code for this?
Nov 21 '05 #7
Sam
Easy for you to say. can you give me some sample code for this?
Nov 21 '05 #8
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?
Nov 21 '05 #9
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?
Nov 21 '05 #10
You could create a wrapper class/sub that calls m.send.

--
Jonathan Allen
"Sam" <sm*****@yahoo.com> wrote in message
news:10************@corp.supernews.com...
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?

Nov 21 '05 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Peter | last post by:
Hello, I am having trouble processing an XML file that contains an error on one of the nodes. How can I instruct the .NET framework to skip the node and continue when it comes across a node...
3
by: Antipode | last post by:
Hi, I'm writing a simple application that deletes multiple directories. I want to write it so that it will simply continue on through the list of directories if an exception is thrown (the...
3
by: JM | last post by:
Newbie Question Is there a way to use Message.Show so that it will allow the program to continue processing without waiting for a user to click OK?
1
by: Chris | last post by:
Hi, how can I send information that is in the Response.OutputStream to the client but continue server processing without having to close the page , or without having to Reponse.End() the...
6
by: CK | last post by:
I have a web page called PageOne.aspx which is supposed to do a long process but I don't need to show any results to the client, so I want to redirect the client to PageTwo.aspx right in the...
2
by: thomasamillergoogle | last post by:
I would like to have a web service continue a little bit of processsing after it returns the data to the consumer. What is the proper way to do this? Please provide an bit of example code on how to...
2
by: boole | last post by:
Hi there, when my ASP page receives the client request, I want to gather the request data (form), promptly end the response to the client (successful) and continue doing what I need to do with the...
36
by: mdh | last post by:
May I ask the group this somewhat non-focused question....having now seen "continue" used in some of the solutions I have worked on. ( Ex 7-4 solution by Tondo and Gimpel comes to mind) Is there a...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.