how to open new window and response.write to it

  • Thread starter Thread starter Josh
  • Start date Start date
J

Josh

Hi,

Anyone know how to open a New Browser window and then "response.write" to
the new window. I know how to open a new window, but then targeting
response.write at it is a mystery.

I need to keep the original window open as well as the new one.

Can anyone help?
 
Hi Josh,

Opening a new window is done using JavaScript. It includes providing the URL
of the resource (ASP.Net document) that will be loaded into the window. A
Response is a Response to a Request. The Request is for a given URL.
Therefore, the ASP.Net document loaded into the new window will Respond to
the Request for the URL of the ASP.Net document loaded into the new window.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.
 
I've not made myself clear.

I can open a new window with javascript no problem. But then I dont want to
pass a url to the window I need to write to it using the Response stream.

The current system cause an IO nightmare because it writes an HTML page to
disk then opens a window pointing to that page.

I need to get the same effect without writting to disk.

Thanks
 
But then I dont want to pass a url to the window

I don't think you've got much choice...

Why not have a blank page that you can open as and when required, and write
to that instead...?
 
I could be be mistaken, but I think that's exactly what he's trying to
do...open a new window, write a respose to it. LOL
 
Oh, I understood you fine. Perhaps I didn't make MY self clear. But I don't
know how to make it any clearer.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.
 
Set

<base target="_self">

in the <head> section of the page that you show in the new window.

Eliyahu
 
Eliyahu, what should the "target" be good for?

Anyway, Josh you can write to the new window with JavaScript on the client.
But this is dangerous if someone have Javascript disabled.
 
Try to postback in a window open with showModalDialog and you will
appreciate the "target"..

Eliyahu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top