473,473 Members | 1,975 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Server.Transfer to a new page

Anyone know how to invoke a new page from c# code (eg. Server.Transfer), but
to have that page open as a new window? So far I have only done this
successfully via html in a hyperlink (target="_blank").
Nov 18 '05 #1
3 2805
"Jeremy" <je*************@blueyonder.co.yk> wrote in message
news:eU**************@TK2MSFTNGP09.phx.gbl...
Anyone know how to invoke a new page from c# code (eg. Server.Transfer), but to have that page open as a new window? So far I have only done this
successfully via html in a hyperlink (target="_blank").


Since Server.Transfer is specifically designed to reduce round tripping, it
is not designed for anything like this - you just can't do it. You either
have to use what you described, or use a <form target=""> that does not
runat=server. Or JavaScript pop-ups.
Nov 18 '05 #2
How else can I do it from within c# code ? Any ideas ?

"Richard K Bethell" <so*****@spammingisevil.bad> wrote in message
news:eU**************@TK2MSFTNGP10.phx.gbl...
"Jeremy" <je*************@blueyonder.co.yk> wrote in message
news:eU**************@TK2MSFTNGP09.phx.gbl...
Anyone know how to invoke a new page from c# code (eg. Server.Transfer), but
to have that page open as a new window? So far I have only done this
successfully via html in a hyperlink (target="_blank").


Since Server.Transfer is specifically designed to reduce round tripping,

it is not designed for anything like this - you just can't do it. You either
have to use what you described, or use a <form target=""> that does not
runat=server. Or JavaScript pop-ups.

Nov 18 '05 #3
"Jeremy" <je*************@blueyonder.co.yk> wrote in message
news:uG**************@TK2MSFTNGP09.phx.gbl...
How else can I do it from within c# code ? Any ideas ?


You pretty much can't. It is an action taken by the client browser, and you
have to give the client browser the instructions (via the form target= or
JavaScript) to do it in a new window.
Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: StephenMcC | last post by:
Hi All, Got a quick query in relation to the Server.Transfer method available in IIS 5+/ASP. I've got an issue where I want to take a portion of an online app and extract this out into a web...
4
by: Harsh Thakur | last post by:
Hi, I'd like to know the performance related differences between Response.Redirect and Server.Transfer. I'd like to redirect the user to a different page. I can either do a...
5
by: Julien C. | last post by:
Hi all, I have an "EditeItem.aspx" page which lets me edit properties of an "Item". In the OnClick() event of my Save button, I do save Item changes to the database and then I redirect the user...
9
by: Mark | last post by:
Hello I'm trying to use a Server.Transfer in a try-catch (I cannot put it outside the Try-Catch as it is nested deep within a component that is called in a try-catch loop) The problem is that the...
11
by: Alexander Bosch | last post by:
Hi, I'm having a problem similar to the one that's stated in this KB http://support.microsoft.com/default.aspx?scid=kb;en-us;839521 When I'm posting a page to itself with the bool value as true it...
3
by: Alan Silver | last post by:
Hello, Sorry if this is a stupid question, but I can't really see much difference between these tow methods according to the scant info in the SDK. Could anyone enlighten me? TIA -- Alan...
8
by: bryan | last post by:
I've got a custom HttpHandler to process all requests for a given extension. It gets invoked OK, but if I try to do a Server.Transfer I get an HttpException. A Response.Redirect works, but I really...
5
by: Richard | last post by:
I've developed a small ASPX template framework (based on Chun Li's article on CodeProject: http://www.codeproject.com/aspnet/headerfooter.asp#xx849313xx) which uses a IHttpModule to apply...
4
by: evantay | last post by:
I'm using ASP.NET 2.0 with VS.NET 2005. I'm trying to access properties from my master pages within a page that inherits from that master page (a child page). However the values are always null....
2
by: =?Utf-8?B?YWxiZXJ0b3Nvcmlh?= | last post by:
Hi, I'm using Threads, and when I try to do Server.Transfer, I recieved an error. (child object does not exist...) My Code: Dim t As New Thread(AddressOf Hilo) Private Sub Hilo()...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...
0
muto222
php
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.