asp页面中刷新出错,应怎么解决
我在页面中调用的一段程序,但发现刷新时有时部分代码不出现,不知道为什么? 
 -- 
  <%   sub   ShowLookHtml() 
 DIM   Query,sql   
 %>  
  <table   width= "550 "   border= "1 "   cellspacing= "0 "   cellpadding= "0 "   bordercolorlight= "#7C7C7C "   bordercolordark= "#FFFFFF ">  
        <tr   bgcolor= "#FFFFFF "   >     
              <td   colspan=5   height=30   align= "center ">      
 		 <INPUT   type= "button "   name= "action "   value= "登记 "   onClick= "window.location.href   = ' <%=indexfilename%> ?action=Add_New ' "   >   
 			       <INPUT   TYPE= "button "   name= "submit "   value= "查询 "   onClick= "window.location.href   = ' <%=indexfilename%> ?action=Add_New ' "    <%if   Session( "Urule ")=>  "a "   then   response.write    "  "   else   response.write    "disabled "   end   if%> >   
                                            <INPUT   TYPE= "button "   name= "submit "   value= "用户登录 "   onClick= "window.location.href   = 'http://localhost/new/index.asp ' "    <%if   Session( "Uname ")= " "   then   response.write    "  "   else   response.write    "disabled "   end   if%> >   
 			                   </td>  
        </tr>  
        <tr      >  
              <td>  
                       <table   width= '100% '   border= '1 '   cellspacing= '0 '   cellpadding= '0 '   bordercolorlight= '#7C7C7C '   bordercolordark= '#FFFFFF '>  
                             <tr      >  
                                   <td   class= "pt2 "   colspan=5> 记录 </td>  
                             </tr>  
        <tr   align=center>     
              <td      width= "10 "   height= "20 "   bgcolor= "rgb(214,211,206) ">   </td>  
              <td   > 姓  名 </td>  
              <td   > 日  期 </td>  
              <td   > 时  间 </td>  
 	 <td   > 原  因 </td>  
        </tr>    
 		 <%  		          
    Query= "SELECT   vipkq.id,   vipkq.username,   vipkq.kqdate,   vipkq.kqtime,   vipkq.cause   FROM   [vipkq]    "		       
                                  set   sql=conn.Execute(Query) 
 		n=0 
 		do   while   not   sql.eof    
 		   %>