如何在事件执行的过程中页面给出“正在执行”的提示,执行完成后提示自动消失?
因为事件执行的时间比较长,这样的提示让用户不会觉得是死机~~
找了半天也不知道怎么解决~~
谢谢大家指导~~

解决方案 »

  1.   

    1.打开流式输出
    2.Response.write("<span id=s1>正在输出</span>")
    3.执行长时间操作
    4.输出可以让s1隐藏的脚本
      

  2.   

    用ajax来做,通过几个状态来判断
    xmlHttp.open("get","url",true);语句之前,用js插入“正在执行,请稍后...”的提示然后
    if(xmlHttp.readyState==4&&xmlHttp.status==200){
    //这里清除掉“正在执行,请稍后...”
    }
      

  3.   

    <html xmlns="http://www.w3.org/1999/xhtml"> 
    <head runat="server"> 
         <title> Untitled Page </title> 
    </head> 
    <body> 
         <form id="form1" runat="server"> 
             <asp:ScriptManager ID="ScriptManager1" runat="server" /> 
             <asp:UpdateProgress ID="UpdateProgress1" runat="server"> 
                 <ProgressTemplate> 
                     <img alt="" src="b3.gif" /> 数据加载中 
                 </ProgressTemplate> 
             </asp:UpdateProgress> 
             <asp:UpdatePanel ID="UpdatePanel1" runat="server"> 
                 <ContentTemplate> 
                     <asp:TextBox ID="TextBox1" runat="server"> </asp:TextBox> <asp:Button ID="Button1" 
                        runat="server" Text="Button" OnClick="Button1_Click" /> 
                     <asp:Label ID="Label1" runat="server"> </asp:Label> 
                     <asp:Timer ID="Timer1" runat="server" Interval="1000" OnTick="Timer1_Tick1"> 
                     </asp:Timer> 
                 </ContentTemplate> 
             </asp:UpdatePanel> 
         </form> 
    </body> 
    </html> 详细的 请看  http://hi.baidu.com/tree3200/blog/item/a4c69e4bd78b3af483025c45.html 
      

  4.   

    怎么可能不行~你装了AJAX支持了吗?
      

  5.   

    <script type="text/javascript">
    window.onload=function(){
      var a = document.getElementById("loading");
      a.parentNode.removeChild(a);
    }
    document.write('<div id="loading" style="background:#CC4444;color:#FFF;width:100%;padding-left:5px;position:absolute;line-height:500px">正在读取...</div>');
    </script>
    <body style="margin:0px;padding:0px;font-size:12px;overflow-y:hidden">   
      <iframe src="http://192.0.1.30:8080/agac/index.aspx" width="100%" height="100%" frameborder="0" marginwidth="0" marginheight="0"></iframe> 
      
    </body>