惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

aimingoo的专栏
aimingoo的专栏
B
Blog RSS Feed
Recent Announcements
Recent Announcements
Vercel News
Vercel News
M
MIT News - Artificial intelligence
阮一峰的网络日志
阮一峰的网络日志
L
LangChain Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Microsoft Security Blog
Microsoft Security Blog
H
Help Net Security
T
The Blog of Author Tim Ferriss
Y
Y Combinator Blog
G
Google Developers Blog
罗磊的独立博客
爱范儿
爱范儿
宝玉的分享
宝玉的分享
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园_首页
S
SegmentFault 最新的问题
WordPress大学
WordPress大学
月光博客
月光博客
人人都是产品经理
人人都是产品经理
Apple Machine Learning Research
Apple Machine Learning Research

博客园 - mecn

好久没来了。。。。。。。。。。 2007最全网页设计实用代码(史上最全) zt javascript 客户端验证上传文件是否合法 c# 汉语拼音排序函数 vs2005 ActiveX c# 注意几点! 关于IE非安全更新带来flash和ActivX不能激活的解决办法(zt) NHibernate 学习 (转园子里子两篇关于NHibernate的文章) 将后台数据读取到前台的EXCEL文件中去,用javascript实现,asp.net,javacript(发一个原创) 浅谈图形验证码的识别 用ajax打造和gmail一样的加载进度条显示!(原创) ajax中 同一页面中 UpdatePanel 区别 更新多个区域的关键 timer使用方法 在asp.net Sql server (可以是存储过程)中使用事务回滚 网页一屏到底有多大 1024*768 800*600 网页设计大小 网页设计尺寸 在vs2005中用push方式来用水晶报表,比pull方式好用多了! 去掉VS2005中水晶报表的登录界面(ZT) Visual Studio 2005 IDE 技巧和窍门 得到页面所有的form内对象数值——————为一个控件加一个客户端属性 从webservice读取string[]至downlist,增加onchange事件,更改相关显示。 动态生成表格内容,支持多个textbox,自动生成textboxID,比较好用
asp.net大页面载入时以进度条显示zt
mecn · 2007-04-25 · via 博客园 - mecn

 protected void Page_Load(object sender, EventArgs e)
    
{
        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(
4000);//

    }

posted on 2007-04-25 10:27  mecn  阅读(1118)  评论(1)    收藏  举报

刷新页面返回顶部