Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Redirect to web window

Status
Not open for further replies.

VergeResources

Programmer
Feb 6, 2002
40
US
Is there a way to popup another window without writing javascript? I have a page that generates a PDF file when submitted. I want to open that PDF file in a separate window (my original window displays status updates). Doesn't look like Redirect or Server.Transfer allow you to open a new window.

Thanks in advance!
 
Hi

No, you will have to use Javascript to open another window as this needs to run on the client.

There are ways around this though...one would be to open your client side window requesting the page which builds the pdf. You would need to pass the data across to this page to do this either in querystring or session. Depending on what form data is used to build the pdf this can be as simple as passing an ID over in the querystring.

For more complicated forms where multiple inputs are used it maybe easier to either

a) postback the form, save the data in session, send back a response with javascript to open the new window and build the pdf.

b) postback, build the pdf and save in temp folder, return javascript to open a new window pointed at the pdf. You would need to "clean up" by removing temp files when the users session ends.

Rob

Go placidly amidst the noise and haste, and remember what peace there may be in silence - Erhmann 1927
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top