<%@ Page %> <script language="C#" runat="server"> private void Page_Load(object sender, System.EventArgs e) { int i; System.Threading.Thread myThread; System.Threading.ThreadStart myThreadStart; myThreadStart=new System.Threading.ThreadStart(DoSomething); myThread=new System.Threading.Thread(myThreadStart); myThread.Start(); for (i=1;i<11;i++) { System.Threading.Thread.Sleep(100); myLabel.Text+=i + "<BR>"; } System.Threading.Thread.Sleep(100); } private void DoSomething() { int i; for (i=11;i<21;i++) { System.Threading.Thread.Sleep(100); myLabel.Text+=i + "<BR>"; } } </script> <HTML> <body> <form id="form1" method="post" runat="server"> <asp:Label ID="myLabel" Runat="server"></asp:Label> </form> </body> </HTML>