请问线程结束后如何刷新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#