By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,826 Members | 2,443 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,826 IT Pros & Developers. It's quick & easy.

Display loop counter dynamically.....

P: n/a
I have a loop for like this:
for(int i =0;i<30;i++){
//statement
lblCount.Text = i.ToString();
//pause
}
i want to display in a label the current i value when the i is
looping...
i think it's impossible if i don't use something that pause
momentarily the loop and show in that moment the i value on the page.

Using Threads can help me?
Tnx.
lorenzo.
Nov 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
i guess its not possible in ASP.Net application. rather possible in windows
application. that you can set the thread to sleep for some time.

but if its asp.net, you can log it somewhere (like write it to a file would
be better option).

Av.

"Lupin_3d" <lu******@libero.it> wrote in message
news:c5**************************@posting.google.c om...
I have a loop for like this:
for(int i =0;i<30;i++){
//statement
lblCount.Text = i.ToString();
//pause
}
i want to display in a label the current i value when the i is
looping...
i think it's impossible if i don't use something that pause
momentarily the loop and show in that moment the i value on the page.

Using Threads can help me?
Tnx.
lorenzo.

Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.