Display loop counter dynamically.....

  • Thread starter Thread starter Lupin_3d
  • Start date Start date
L

Lupin_3d

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.
 
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.
 
Back
Top