首页 ┆ 网站地图 ┆ 在线留言 ┆ 游戏资讯 ┆ 资源下载 ┆ 端午节祝福 ┆ 迅雷在线影视 ┆淘宝手机在线充值 ┆淘宝游戏点卡充值 
设为首页
加入收藏
联系我们
高级搜索
您当前的位置: 主页>NET专区>ASP.NET>.net实现在IE耗时操作中加入进度条或进度框
.net实现在IE耗时操作中加入进度条或进度框
来源: 发布时间:2008-03-04 发布人: 浏览: 人次   字体: [ ]  
加入进度条
this.Page.Response.Write("<div id='mydiv' >");
   this.Page.Response.Write("_");
   this.Page.Response.Write("</div>");
   this.Page.Response.Write("<script>mydiv.innerText = '';</script>");
   this.Page.Response.Write("<script language=javascript>;");
   this.Page.Response.Write("var dots = 0;var dotmax = 10;function ShowWait()");
   this.Page.Response.Write("{var output; output = '正在查询,请稍后';dots++;if(dots>=dotmax)dots=1;");
   this.Page.Response.Write("for(var x = 0;x < dots;x++){output += '·';}mydiv.innerText =  output;}");
   this.Page.Response.Write("function StartShowWait(){mydiv.style.visibility = 'visible'; ");
   this.Page.Response.Write("window.setInterval('ShowWait()',1000);}");
   this.Page.Response.Write("function HideWait(){mydiv.style.visibility = 'hidden';");
   this.Page.Response.Write("window.clearInterval();}");
   this.Page.Response.Write("StartShowWait();</script>");
   this.Page.Response.Flush();

 .........

   this.Page.Response.Write("<script language=javascript>HideWait();</script>");

加入进度框

this.Page.Response.Write("<script language=javascript>var win;win=window.open('_layouts/bluetech/loading.htm','progress','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=270,height=201,screenX='+(screen.width-270)/2+',screenY='+(screen.height-201)/2+',top='+(screen.height-201)/2+',left='+(screen.width-270)/2+'');</script>");
   this.Page.Response.Flush();
   ...........

   this.Page.Response.Write("<script language=javascript>win.close();</script>");  

相 关 文 章   发布商链接
·在asp.net中保持Session的有效期
·asp.net(c#)生成验证码代码,点击可刷...
·asp.net可输入的下拉框复合控件代码
·如何在asp.net中获得textBox当前光标...
·关于web.config的数据库连接的相对路...
·ASP.NET取得物理路径和虚拟路径的代...
·解决ASP.NET出现"正在中止线程"的错...
·ASP.NET中跨页面实现DataGrid行多选...
·ASP.NET动态增加或减少TABLE列和行实...
·ASP.net变量保存几种方法应用场合及...
 §最新评论:(评论内容只代表网友观点,与本站立场无关!)
网名: 验证码:  【所有评论】【↑返回顶部
评 分: 12 345
评论内容:(不能超过500字,请自觉遵守互联网相关政策法规。[按 Ctrl+Enter 可直接提交]
注意:请勿在本站发布政治话题、色情及违反法律的内容。
IT知道网 声明:刊登此文章是为了传递更多信息,文章内容仅供参考,转载请注明出处。
推 荐 文 章
·实例讲解ASP.NET实现加密Cook...
·如何实现在DataList控件中的D...
·实例讲解asp.net生成高质量缩
·asp.net适用于IE或FireFox的...
·举例详解C#代码与javaScript...
·asp.net无刷新上传文件
·在Ie中保存图片时出现"800700...
·asp.net文件上传大小限制的控
·asp.net动态生成txt文本文件...
·asp.net实现将Excel文件导入...
·实现多列,带图片的DropDownLi...
·javascript实现TreeView 控件
·ASP.NET配置Word的操作权限
·让FileUpload控件在IE和FireF...
·ASP.NET实现Office文档的分类
热 门 文 章
·asp.net(C#)上传下载及文件管...
·图解asp.net如何用excel做报...
·asp.net无刷新上传文件
·Asp.Net防止刷新重复提交数据...
·asp.net实现将Excel文件导入...
·ASP.NET取得物理路径和虚拟路...
·asp.net中Web.Config配置文件...
·asp.net(c#)生成验证码代码,...
·asp.net页面回传与js调用服务...
·asp.net中DataBinder.Eval的...
·asp.net(C#版)实现登录验证码...
·DataGrid中DropDownList触发S...
·asp.net可输入的下拉框复合控...
·ASP.net 实现批量数据更新或...
·asp.net中常见的几种日历控件...
网站首页 - 关于本站 - 加入收藏 - 网站地图 - 友情连接 - 在线留言 - 联系我们 - 返回顶部
Copyright © 2007 IT知道网.[冀ICP备07026896号]. All Rights Reserved .