Server.Transfer to a new page

J

Jeremy

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").
 
R

Richard K Bethell

Jeremy said:
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.
 
R

Richard K Bethell

Jeremy said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,577
Members
45,054
Latest member
LucyCarper

Latest Threads

Top