I have this aspx:
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 one. This button is located in popup window and need to open the page 'Search.aspx' in new window.
if change code to
Page.RegisterStartupScript("redirect", "<script language = 'Javascript'> window.open('Search.aspx', '_blank');</script> ");
but nothing happens