code_junkie

Why does Response.Redirect close my browser window instead of redirecting

Nov 13th, 2011
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. if (mode == "print")
  2. {
  3. error_code.Text = "";
  4. //thumb.Src = file_loc + "source/" + "certificate_thumbnail.jpeg";
  5. link.HRef = "Certificates/" + u_name + ".pdf";
  6. link.Visible = true;
  7. Response.Redirect("http://xx.xxxxxxxxxxxxx.xx.gov/cert/Certificates/" + u_name + ".pdf");
  8.  
  9.  
  10. }
  11.  
  12. Response.Redirect("http://www.google.com");
Add Comment
Please, Sign In to add comment