response.redirect and window.open

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hi,

I've got an aspx page with a button. Upon clicking this button, it will pop
up a new window to go a new page. At the same time, the parent window will
redirect itself to another page.
How can this be done?

Thanks !!
 
Hi
1. On button1 click event, do a response.redirect("page1.aspx")
2. On the page_Load event, add the following

RegisterStartupScript("BUTTON1_CLICK", "<script
language=javascript>function
openwindow(){window.open('page2.aspx')}</script>")
Button1.Attributes.Add("OnClick", "openwindow()")

This will redirect the page as well as open another page.
Thanks,
Ibrahim
If you find this post useful, please click 'yes'
 
Back
Top