 protected void Page_Load(object sender, EventArgs e)
        protected void Page_Load(object sender, EventArgs e) {
        { if (!IsPostBack)
            if (!IsPostBack) {
            { Loading();
                Loading(); }
            } }
        }
 public static void Loading()
        public static void Loading() {
        { HttpContext hc = HttpContext.Current;
            HttpContext hc = HttpContext.Current; hc.Response.Write("<div id='loading'> ");
            hc.Response.Write("<div id='loading'> "); hc.Response.Write("<img src='Images/Loading/loading.gif'/> ");
            hc.Response.Write("<img src='Images/Loading/loading.gif'/> "); hc.Response.Write("</div>");
            hc.Response.Write("</div>"); //hc.Response.Write("<script>mydiv.innerText = '';</script>");
            //hc.Response.Write("<script>mydiv.innerText = '';</script>"); hc.Response.Write("<script type=text/javascript>");
            hc.Response.Write("<script type=text/javascript>"); hc.Response.Write("function document.onreadystatechange()");
            hc.Response.Write("function document.onreadystatechange()"); hc.Response.Write(@"{ try
            hc.Response.Write(@"{ try   {
                                   { if (document.readyState == 'complete')
                                    if (document.readyState == 'complete')  {
                                    { delNode('loading');
                                         delNode('loading'); 
                                         }
                                    } }
                                   } catch(e)
                                 catch(e) {
                                    { alert('页面加载失败');
                                        alert('页面加载失败'); }
                                    } }
                                                        } 
 function delNode(nodeId)
                            function delNode(nodeId) {
                            {    try
                                try {
                                {    var div =document.getElementById(nodeId);
                                      var div =document.getElementById(nodeId);  if(div !==null)
                                      if(div !==null) {
                                      { div.parentNode.removeChild(div);
                                          div.parentNode.removeChild(div);    div=null;
                                          div=null;     CollectGarbage();
                                          CollectGarbage();  }
                                      }  }
                                } catch(e)
                                catch(e) {
                                {    alert('删除ID为'+nodeId+'的节点出现异常');
                                   alert('删除ID为'+nodeId+'的节点出现异常'); }
                                }    }
                            }
 ");
                            ");
 hc.Response.Write("</script>");
            hc.Response.Write("</script>"); hc.Response.Flush();
            hc.Response.Flush(); }
        } 
                     
                    
                 
                    
                 
	 
 
        
 
             
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号