How to open a page in a new window?

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.
 
S

Sabre

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
 

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

Top