List Info

Thread: Help regarding dynamic contents




Help regarding dynamic contents
user name
2006-07-12 12:22:48

Hi

I am trying to build an ASP application which will print some value
i.e. interger on the webpage and update it at specific intervals.

The option which I'v tried is :
1. Create a thread
2. Call a function which has a infinite while loop with a print
statement with a sleep method in between like:

private void startFunction()
{
TimeSpan waitTime = new TimeSpan(0, 0, 10);
int n = 0;
while(n != -1)
{
Thread.Sleep(waitTime);
Label1.Text = n.ToString();
Thread.Sleep(waitTime);
n++;
}
}

This should print something like 0, 1, 2 etc at specific intervals..
Something which is not turning out tht way!

Any comments?

Regards
Pinaki

__._,_.___
.

__,_._,___
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )