asp.net进度条:在ASP处理程序时显示进度来源: 发布时间:星期四, 2009年2月12日 浏览:157次 评论:0
用过软件Software ![]() ![]() ![]() ![]() ![]() 它 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 那幺如何实现进度条呢? 以下是本人 ![]() ![]() 我们通常在用ASP处理 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 以下是 ![]() ![]() ![]() response.buffer=true dim lostnum dim shownum delayshow(dstep,dmax)过程是用于显示多少img(画多少进度) 其中dmax为表示整个 ![]() ![]() 其中dstep表示当前处理 ![]() ![]() ![]() ![]() 变量lostnum ![]() ![]() ![]() ![]() ![]() ![]() delayshow(100,10000)才画 ![]() ![]() ![]() ![]() ![]() sub delayshow(dstep,dmax) dim total //显示画面100张img dim dtemp //过渡变量 total=100 dtemp=dstep dstep=dstep+lostnum ![]() //判断当要处理 ![]() ![]() ![]() ![]() ![]() ![]() lostnum=lostnum+dtemp ![]() for ccc=1 to fix((dstep*total)/dmax) //取整数 Response.Write \"<img src=\"http://127.0.0.1/Files/BeyondPic/2007-4/19/0741913273546594.jpg\"\">\" next Response.Flush //将缓存Cache里 ![]() //变量shownum用于存放目前已经画 ![]() shownum=shownum+fix((dstep*total)/dmax) lostnum=0 end ![]() end sub //由于算法 ![]() ![]() ![]() 过程showlost ![]() ![]() ![]() ![]() sub showlost ![]() for ccc=1 to (100-shownum) Response.Write (\"<img src=\"http://127.0.0.1/Files/BeyondPic/2007-4/19/0741913273546594.jpg\"\">\") next Response.Write \"<BR>\" Response.Flush end sub 最后请注意 这里需要用到缓存Cache技术 response.buffer=true; response.flush; response.end 这些请参考MSDN帮助 0
相关文章读者评论发表评论 |