码迷,mamicode.com
首页 > 其他好文 > 详细

大量数据查询进度等待

时间:2016-06-03 09:55:42      阅读:177      评论:0      收藏:0      [点我收藏+]

标签:

主要代码,请根据实际情况修改。

技术分享
        Response.Write("<div id=‘mydiv‘ >");
        Response.Write("_");
        Response.Write("</div>");
        Response.Write("<script>mydiv.innerText = ‘‘;</script>");
        Response.Write("<script language=javascript>;");
        Response.Write("var dots = 0;var dotmax = 10;function ShowWait()");
        Response.Write("{var output; output = ‘正在查询,请稍后‘;dots++;if(dots>=dotmax)dots=1;");
        Response.Write("for(var x = 0;x < dots;x++){output += ‘·‘;}mydiv.innerText =  output;}");
        Response.Write("function StartShowWait(){mydiv.style.visibility = ‘visible‘; ");
        Response.Write("window.setInterval(‘ShowWait()‘,1000);}");
        Response.Write("function HideWait(){mydiv.style.visibility=‘hidden‘;");
        Response.Write("window.clearInterval();}");
        Response.Write("StartShowWait();</script>");
        Response.Flush();
        Thread.Sleep(10000);
技术分享

另外需要加入添加线程的命名空间using System.Threading;

大量数据查询进度等待

标签:

原文地址:http://www.cnblogs.com/shouce/p/5555046.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!