How to open a page in a new window?

  • Thread starter Thread starter Erik Veldkamp
  • Start date Start date
E

Erik Veldkamp

Hi there,

With the following statements:
Server.Transfer("Voorbeeld.aspx");

Response.Redirect("Voorbeeld.aspx?code="+Label1.Text.Trim());

I can open a page in an existing window. But I would like to open it in a
new window, like you can do with a hyperlink when you set the Target
property to _blank. How can I do this?

Thanks for your help.


Erik.
 
Maybe something like ...
Response.Write("<script language='javascript'
type='text/javascript'>OptionsWindow=open('Options.aspx', 'OptionsWindow',
'width=830, height=630, top=50, left=50, resizable=yes, toolbar=no,
scrollbars=yes')</script>")

You'd need to work on your querystring.

Hope this helps, Graeme
 
Back
Top