提交事件程序后缀上“Response.Write("<script>window.location.href=window.location.href;</script>");Response.End();";

解决方案 »

  1.   

    在 每次 执行完后 添加一句。
    Response.Write("<script>window.location.href='" + Request.Url.ToString() + "';</script>");
    就可以了。
      

  2.   

    禁止ctrl+n和禁止ctrl+r和禁止shift+f10禁止鼠标右键or左右键和禁止f5   
        
      <Script>   
      var   oLastBtn=0,bIsMenu=false   
        
      if   (window.Event)   
      {   
      document.captureEvents(Event.MOUSEUP);     
      }   
        
      function   nocontextmenu()   
      {     
      event.cancelBubble=true;   
      event.returnValue=false;     
      return   false;     
      }   
        
      function   norightclick(e)     
        
      {     
      if(window.Event)     
      {     
      if   (e.which   !=1)   
      {   
      return   false;     
      }   
      }     
      else     
      if(event.button!=1)     
      {     
      event.cancelBubble=true;   
      event.returnValue=false;     
      return   false;     
      }     
      }   
        
      document.oncontextmenu=nocontextmenu;     
      document.onmousedown=norightclick;     
        
      function   onKeyDown()   
      {   
      if   ((event.altKey)||((event.keyCode==8)&&(event.srcElement.type!="text"&&event.srcElement.type!="textarea"&&event.srcElement.type!="password"))||((event.ctrlKey)&&((event.keyCode==78)||(event.keyCode==82)))||(event.keyCode==116))   
      {   
      event.keyCode=0;   
      event.returnValue=false;   
      }   
      }   
      </Script>   
       
       
       
      <body   onkeydown="onKeyDown()">