473,394 Members | 1,944 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,394 software developers and data experts.

looping and displaying progress with every iteration

This should be an easy one, but I'm not sure the best way to do it.

I've got a form, and when I click a button it starts looping through an
array. With each iteration of the array I want it to change the status of a
label.

I realise that it must complete the execution of the code-behind page before
it can update the labels, so how do I do it?

TIA, Bruce
Nov 18 '05 #1
2 1770
I have a couple of approaches on my website tackling this. Essentially, you
want to create a progress bar of sorts.

http://www.networkip.net/tidbits/splash.htm

Regards

--
-----------
Got TidBits?
Get it here: www.networkip.net/tidbits
"Bruce Whitehouse" <bruce@REMOVE_THISallstarfun.co.uk> wrote in message
news:#k*************@tk2msftngp13.phx.gbl...
This should be an easy one, but I'm not sure the best way to do it.

I've got a form, and when I click a button it starts looping through an
array. With each iteration of the array I want it to change the status of a label.

I realise that it must complete the execution of the code-behind page before it can update the labels, so how do I do it?

TIA, Bruce

Nov 18 '05 #2
Thanks Alvin

What I was wanting to do was loop through some code in my VB (code behind
page). The loop is actually going through 15 or so web services (which take
up to 2 minutes each), so on each iteration of the loop (for each
webservice) I wanted to let the user know what the status was of each web
service call.

I'm about to re-write the page using an array and a datagrid. I'll be
letting the page complete, checking for what is to happen next, execute the
method, update label, let page reload, etc, etc.

So I can't have the page reload every 2 seconds. Firstly because the web
service method that I'm calling returns a true value, and I have to wait for
it to be returned.

Bruce

"Alvin Bruney" <vapordan_spam_me_not@hotmail_no_spamhotmail.com > wrote in
message news:eM**************@TK2MSFTNGP09.phx.gbl...
I have a couple of approaches on my website tackling this. Essentially, you want to create a progress bar of sorts.

http://www.networkip.net/tidbits/splash.htm

Regards

--
-----------
Got TidBits?
Get it here: www.networkip.net/tidbits
"Bruce Whitehouse" <bruce@REMOVE_THISallstarfun.co.uk> wrote in message
news:#k*************@tk2msftngp13.phx.gbl...
This should be an easy one, but I'm not sure the best way to do it.

I've got a form, and when I click a button it starts looping through an
array. With each iteration of the array I want it to change the status
of a
label.

I realise that it must complete the execution of the code-behind page

before
it can update the labels, so how do I do it?

TIA, Bruce


Nov 18 '05 #3

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

Similar topics

8
by: kaptain kernel | last post by:
i've got a while loop thats iterating through a text file and pumping the contents into a database. the file is quite large (over 150mb). the looping causes my CPU load to race up to 100 per...
7
by: Lauren Quantrell | last post by:
I have a table with three columns. One of the columns contains text output data nvarchar(500), one of them contains a filename nvarchar(50), one of the columns is a bit to record if it has been...
5
by: masood.iqbal | last post by:
My simplistic mind tells me that having local variables within looping constructs is a bad idea. The reason is that these variables are created during the beginning of an iteration and deleted at...
5
by: Agnes | last post by:
I need to loop a datatable to do some calculation. I want to use progress bar to show the 'process status' Must I need to know the datatable size first ? , if there is 1000 records inside, I need...
2
by: Mitchell Vincent | last post by:
I have a progess window with a label and progressbar that get updated once per iteration of a for next loop. Everything works perfect (after I call the Refresh members of any control I change in...
7
by: linq936 | last post by:
Hi, The following is a psudo code to describe my question: vector<int> ints; vector<int>::iterator itr; while (itr != ints.end()){ int j = some_function(*i); if (j>0){ ints.push_back(j); }
4
by: ambros.gleixner | last post by:
Hello everyone, I was wondering if (in pure command line, "non-visual" C++) there is a simple way of regularly calling an output function in the background while a process, e.g. loading of a...
3
by: Alan T | last post by:
Sometimes I have to loop thru' 55 times, sometimes 240 times. How do I set the Maximum and, Step property of progress bar so that it reflects the progress inside the while loop? i = 55; for...
6
by: vbwire | last post by:
i use vb 6.0 Option Explicit Dim Error As Double Dim x As Integer Dim y As Double Dim z As Integer
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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,...
0
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...
0
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...

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.