473,500 Members | 1,929 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 5152
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
7612
by: monika | last post by:
Hi all... I am able to select a student's story and open it in a word doc. the teacher then corrects the story, highlight in colors the comments, strikethrough. In fact all the privileges I...
3
3118
by: Leonard | last post by:
I have a button on my web app, that opens a help html page. I use this code: HttpContext.Current.Response.Write("<script>") HttpContext.Current.Response.Write("window.open('" & sUrl & "','_new')")...
2
2003
by: Mike Lambert | last post by:
I want to be able to open another web page in a new browser window from the one I am currently on? How do I accomplish this? I am currently just using the response.redirect method but can't find...
3
3560
by: ODB | last post by:
Okay what i need is to open af new browser windows with some link in, but i can't get the Response.Redirect to open af new window, and when i redirect to a new page in the same window and then hit...
3
9749
by: Stephen Witter | last post by:
I am currently using response.redirect in a aspx to go to a web page. What I want is to open the page in a new window. My dotnet code is as follows: Dim sFileName as string =...
1
386
by: bucrepus | last post by:
I know response.redirect doesn't open a new page. I have read many posts on how to fix this but I can't get the first one to work. Please help.. I have tried on 2 diff dev machines with no success...
11
4911
by: Dave | last post by:
For some reason, the below lines only work on select machines. All machines are running IE6. IE SP's and OS's vary. When it doesn't work, default.aspx (the page that this code is in) opens and...
1
3460
by: dnes | last post by:
Open Multiple New Browser Windows from ASP.NET I'm having trouble figuring out how to open multiple new browser windows (each one displaying something different). As you can see from the code...
3
6617
by: | last post by:
Hello, I try to open a new Window in code behind with : ClientScript.RegisterClientScriptBlock(this.GetType(), "MyOpenScript", "window.open('toto.doc');", true); My problem is that the new...
0
7136
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7182
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6906
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7397
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4611
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3110
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3106
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1430
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
672
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.