当前位置:编程学习 > C#/ASP.NET >>

请问线程结束后如何刷新Web页面

用线程控制一个运行时间较长的程序,需要在线程结束后把运行结果显示到web页面上,现在的结果是在线程结束前页面已经推送到出去了,查询结果无法显示在页面上

public void SetList()
        {
            ltResult.Text = BigSearch();
            ScriptManager.RegisterClientScriptBlock(form1, this.GetType(), "", "alert('ok')", true);
        }

        public void SetListThread()
        {
            System.Threading.Thread thread = new System.Threading.Thread(new System.Threading.ThreadStart(SetListThread));
            thread.Start();

            OpenProgressBar(this.Page);
        }

谢谢!
补充:.NET技术 ,  C#
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,