I have this aspx in the popup window:
protected void btnOpen_Click(object sender, EventArgs e)
{
Page.RegisterStartupScript("redirect", "<Script language = 'Javascript'> window.parent.location='Search.aspx' ; </Script>");
}
How do I change this script so that the link opens not in the parent page but in a new window? This button is located in the popup window and needs to open the page 'Search.aspx' in the new window, not in the parent.
if change code to
Page.RegisterStartupScript("redirect", "<script language = 'Javascript'> window.open('Search.aspx', '_blank');</script> ");
but nothing happens