473,659 Members | 3,117 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 2581
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.c om> wrote in message
news:11******** **************@ g43g2000cwa.goo glegroups.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
7394
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 start over again. The first error is logged as a 400 error and says only, "The parameter is incorrect." It (mostly, but not always) happens upon submitting a form, and a reload is generally successful in bringing the page up just fine. I have...
3
1859
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. What I want to do is have a page that pops up "in-between" the two pages. Something that says "Processing Request: Please Wait" or somesuch and have a progress bar or something as well (would not have to be an accurate progress bar, per se)....
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
8790
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 update, and then an insert, in that order. I am doing this for speed, since my program can't afford to wait for the answer from the first to complete before making the request for the second. For some reason this method has started giving the...
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 update, and then an insert, in that order. I am doing this for speed, since my program can't afford to wait for the answer from the first to complete before making the request for the second. For some reason this method has started giving the...
1
15948
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 the code in the form. Is it even possible to do this? If so, how? Thanks!
7
2084
by: adelfino | last post by:
I mean: unsigned char foo = ""; is the same as: unsigned char foo; memset (foo, '\0', bar); ?
2
1111
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 example: Home > Support > Newsgroups
7
1853
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 that wanted effect :) here you go: http://www.shopping.hp.com/webapp/shopping/computer_can_series.do?storeName=computer_store&category=notebooks&a1=Display&v1=20.1&series_name=HDX_series&a1=Display&v1=20.1 click on the left >Recommended config...
0
8335
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8851
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8747
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8627
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7356
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6179
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4175
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
1976
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1737
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.