title: window.print then redirect from codebehind c#
body: <p>I have searched every possible way and I'm stuck :( hopefully somebody can give me some pointers on how to accomplish the following:</p>
  
  <p>Page1 opens page2</p>
  
  <p>page2 as windows.print() after it prints i would like for it to redirect back to page1</p>
  
  <p>now page2 loads information in codebehind on page_load after its done loading the it prints if I put a response.redirect after its done loading the page then it never prints. Hope its understandable so that someone can give me some sort of solution.</p>
  
  <p>I've tried to put a timer but the problem is that the user might not print right away or they have to wait for the computer to recognize the printer or any other situation so I have to rely on it printing and then redirecting.</p>
  
  <p>Also the redirect must pass a variable from codebehind so what I'm thinking is maybe calling the windows.print from codebehind and passing that parameter so after its done it can redirect from javascript with the correct value?  Any help is much appreciated.</p>
  
  <p>Thanks in advance</p>