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? 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?
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?
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?
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
"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...?
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...?
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
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?
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?
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? > > This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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...
|
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')")...
|
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...
|
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...
|
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 =...
| |
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...
|
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...
|
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...
|
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...
|
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,...
|
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,...
| |
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...
|
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...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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 ...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |