CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Close ASP Form

Print topic Send  topic

Author Message
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
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.