472,980 Members | 2,010 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,980 software developers and data experts.

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 5133
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
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
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
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
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
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
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
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
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
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
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.