由于导入excel文件 处理数据时间很长 。。所以想做个进度条显示系统进度处理数据时 提示处理多少 我用下面这种方法不行 for (int i = 0; i < 1000000; i++)
{
if (i % 10000 == 0)
{
Response.Write("<div style='position:absolute; top:303px;left:" + (303 + 4 * (int)(i / 10000)).ToString() + "px;width:4px; color:66bcfc;border:0px;solid:#080808;height:22px;'><img src=Images/delay1.jpg></img></div> ");
Response.Flush();
Thread.Sleep(100);
}
}
网上也看了些 资料 还是没有做出来 现在对asp.net 运行顺序 头脑晕呼呼 的 由于时间紧急 希望大家帮帮忙 如果有做过的 麻烦给个源码看下 或者给个思路
{
if (i % 10000 == 0)
{
Response.Write("<div style='position:absolute; top:303px;left:" + (303 + 4 * (int)(i / 10000)).ToString() + "px;width:4px; color:66bcfc;border:0px;solid:#080808;height:22px;'><img src=Images/delay1.jpg></img></div> ");
Response.Flush();
Thread.Sleep(100);
}
}
网上也看了些 资料 还是没有做出来 现在对asp.net 运行顺序 头脑晕呼呼 的 由于时间紧急 希望大家帮帮忙 如果有做过的 麻烦给个源码看下 或者给个思路
2.计算进度 http://www.alixixi.com/program/a/2008050627111.shtml