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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top