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, BruceI 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:#kZ$VjNsDHA.540@.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
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:eMrjlmRsDHA.2224@.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:#kZ$VjNsDHA.540@.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
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment