473,503 Members | 1,857 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Ideas needed - sending emails with "progress bar"

Hi,
I'm using a asp.net 2.0 website to send out emails to users, the amount of
which can reach up to 1500 users. Obviously the code sending the emails has
to let the client know the mails are being sent out and display some kind of
progress indicator. How would you implement this?
Back in old asp 3.0 days I had a blank page where code did a
Response.Write(.."mail sent"...) for each mail sent, the layout had to be
simple because the page is not correct by HTML standard since the last
</div> or </table> isn't returned until everything those elements has been
returned (in this case the "mail sent" texts).

I had this idea of mixing server & client jscript code - having jscript on
client trigger the server to send next email, then grab the result code and
display etc... ?
Feb 8 '06 #1
5 2574
heres a good article that describes how to accomplish asynchronous
process kickoff with ASP.NET. you are probably looking for something
along these lines:

http://www.eggheadcafe.com/articles/20051223.asp

I think that is exactly what you are looking for.

Feb 8 '06 #2
hmm... I see in your article how I can call the send() method without
waiting for it to finish but still I don't see how I can use that to update
a progress bar on client side?
"DKode" <dk****@gmail.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
heres a good article that describes how to accomplish asynchronous
process kickoff with ASP.NET. you are probably looking for something
along these lines:

http://www.eggheadcafe.com/articles/20051223.asp

I think that is exactly what you are looking for.

Feb 8 '06 #3
what you could do is have a meta refresh on the client side, like a
popup or something, everytime it refreshses, it gets a new value from
the server to display the progress, this is as far as I have ever gone
with a progress bar in ASP.net

Feb 8 '06 #4
Just thought of something else:

take a look at AJAX

you can set a javascript timer that will send a request to the server
without a page refresh, you could get the progress from a server object
and then update the values on the client side.

AJAX allows you to send server requests from the client without needed
to do another post. its pretty easy to implement as well

heres an article explaining how to get started with AJAX:

http://www.developerfusion.co.uk/show/4704/

theres also an article on MSDN:

http://msdn.microsoft.com/library/de...SpicedAjax.asp

Feb 10 '06 #5
I have done a progress bar using ajax and dhtml. when i have time i will blog
it at http://www.ajaxtoday.com

"Daves" wrote:
Hi,
I'm using a asp.net 2.0 website to send out emails to users, the amount of
which can reach up to 1500 users. Obviously the code sending the emails has
to let the client know the mails are being sent out and display some kind of
progress indicator. How would you implement this?
Back in old asp 3.0 days I had a blank page where code did a
Response.Write(.."mail sent"...) for each mail sent, the layout had to be
simple because the page is not correct by HTML standard since the last
</div> or </table> isn't returned until everything those elements has been
returned (in this case the "mail sent" texts).

I had this idea of mixing server & client jscript code - having jscript on
client trigger the server to send next email, then grab the result code and
display etc... ?

Apr 3 '06 #6

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

Similar topics

5
7385
by: Michelle Kinsey-Clinton | last post by:
Hello, I am writing an ASP app which is giving me some very frustrating errors. They appear intermittently, no real pattern to them, and often go away if you reload, or back up a few pages and...
3
1846
by: Roy | last post by:
Anyone have any links and/or code samples demonstrating how this can be done? Current procedure is that john doe clicks an item on a datagrid of mine and after however long, gets the info he wants....
0
364
by: Daniel | last post by:
how to make sure a xsl document has valid xsl syntax? i tried loading it into an xml document but that doesnt show syntax errors inside attributes such as "foo/bar" vs "bar\foo"
2
8764
by: pgsql | last post by:
I am doing asynchronous sql calls using the postgres C library. After doing two PQsendQuery() calls, I get the "another command is already in progress" error. The two calls I am doing are an...
0
460
by: frenzy | last post by:
I am doing asynchronous sql calls using the postgres C library. After doing two PQsendQuery() calls, I get the "another command is already in progress" error. The two calls I am doing are an...
1
15935
by: Mary Ann | last post by:
I would like to write code in the On Open property of a form that hides the main menu bar toolbar. I have already customized the menu bar to all for showing/hiding but have no clue how to write...
7
2071
by: adelfino | last post by:
I mean: unsigned char foo = ""; is the same as: unsigned char foo; memset (foo, '\0', bar); ?
2
1095
by: John M | last post by:
Hi, You may have seen on some websites a type of "navigation bar" where the current page and all previous pages in the website hierarchy are displayed. Each page is listed as a link. For...
7
1845
by: Joe | last post by:
usually slide bars move by "jumps" while scrolling which looks not nice. I came accress slide bar with price menu, ewnt through script/web source code, and could not find anything that would case...
0
7205
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7348
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7006
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7467
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5592
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5021
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
3175
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3166
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
397
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.