ekendricks
Posts: 34
|
| Posted: 05/07/2007, 8:12 AM |
|
Using CCS - ASP - SQL 2005
I have a routine to populate a PDF from the Database, but requires an ASP page to open, and then re-direct to open the PDF. Tried placing the code to open the PDF elsewhere, but that didn't work. Everything works fine, as the PDF opens and is populated perfectly, but I'm left with a blank window open, that has to be manually closed. The entire code for that page is below. The problem I'm having is, if I close the page, then it won't re-direct. Once it reads the re-direct stmt, then the window.close is not read. Does anyone have a suggestion or possible cure to re-direct AND close the existing window?
----------------------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<%
' opens up adobe acrobat
' unfortunately, keeps this page open as a blank page
response.redirect request("thepage")
%>
<html>
<head>
<title>Untitled</title>
<script language="javascript">
// doesn't seem to work, but put it here anyway
window.close();
</script>
</head>
<body>
</body>
</html>
----------------------------------------------------------------------------------
Thanks....
Ernest
|
 |
 |
|