response.redirect and window.open

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • bubbles

    #1

    response.redirect and window.open

    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 !!
  • Ibrahim Shameeque

    #2
    RE: response.redire ct and window.open

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

    RegisterStartup Script("BUTTON1 _CLICK", "<script
    language=javasc ript>function
    openwindow(){wi ndow.open('page 2.aspx')}</script>")
    Button1.Attribu tes.Add("OnClic k", "openwindow ()")

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

    "bubbles" wrote:
    [color=blue]
    > 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 !![/color]

    Comment

    Working...