468,510 Members | 1,718 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,510 developers. It's quick & easy.

how to open new window and response.write to it

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?
Nov 19 '05 #1
11 4926
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.

"Josh" <s@a.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
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?

Nov 19 '05 #2
Set

<base target="_self">

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

Eliyahu

"Josh" <s@a.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
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?

Nov 19 '05 #3
Where do you need to effect resopnse.write? New window, or old one?

"Josh" wrote:
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?

Nov 19 '05 #4
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
Nov 19 '05 #5
"Josh" <s@a.com> wrote in message
news:%2***************@TK2MSFTNGP12.phx.gbl...
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...?
Nov 19 '05 #6
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

"Mark Rae" <ma**@mark-N-O-S-P-A-M-rae.co.uk> wrote in message
news:ud**************@TK2MSFTNGP15.phx.gbl...
"Josh" <s@a.com> wrote in message
news:%2***************@TK2MSFTNGP12.phx.gbl...
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...?

Nov 19 '05 #7
new window
Nov 19 '05 #8
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.

"Josh" <s@a.com> wrote in message
news:%2***************@TK2MSFTNGP12.phx.gbl...
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

Nov 19 '05 #9
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.
"Eliyahu Goldin" wrote:
Set

<base target="_self">

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

Eliyahu

"Josh" <s@a.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
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?


Nov 19 '05 #10
Try to postback in a window open with showModalDialog and you will
appreciate the "target"..

Eliyahu

"Patrick" <Pa*****@discussions.microsoft.com> wrote in message
news:0A**********************************@microsof t.com...
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.
"Eliyahu Goldin" wrote:
Set

<base target="_self">

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

Eliyahu

"Josh" <s@a.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
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?


Nov 19 '05 #11
Ah, good to know. Thanks Eliyahu!

"Eliyahu Goldin" wrote:
Try to postback in a window open with showModalDialog and you will
appreciate the "target"..

Eliyahu

"Patrick" <Pa*****@discussions.microsoft.com> wrote in message
news:0A**********************************@microsof t.com...
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.
"Eliyahu Goldin" wrote:
Set

<base target="_self">

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

Eliyahu

"Josh" <s@a.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
> 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?
>
>


Nov 19 '05 #12

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Leonard | last post: by
2 posts views Thread by Mike Lambert | last post: by
3 posts views Thread by Stephen Witter | last post: by
1 post views Thread by bucrepus | last post: by
11 posts views Thread by Dave | last post: by
reply views Thread by NPC403 | last post: by
1 post views Thread by fmendoza | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.