
protected void Page_Load(object sender, EventArgs e)
{
Response.Buffer = true;
if (Page.IsPostBack)
{
while (Response.IsClientConnected)
{
System.Threading.Thread.Sleep(1000);
if (Application["msg"] != Session["Current"])
{
Session["Current"] = Application["msg"];
Response.Write(Session["Current"].ToString());
Response.Flush();
}
else
{
Response.Write(".");
Response.Flush();
}
}
}
else
{
Session["Current"] = "";
Response.Write("Do on Request!<br>");
}
}



by: 发表于:2017-11-02 09:49:25 顶(0) | 踩(0) 回复
??
回复评论