Server.Transfer to a new page

  • Thread starter Thread starter Jeremy
  • Start date Start date
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").
 
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.
 
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.
 
Back
Top