Like the title says, i have a parent window with button that opens a child window for login under https. i found a lot of examples and they all work great when the child window is not HTTPS. like this example:
protected void Button1_Click(object sender, EventArgs e)
{
if (loginSuccess)
{
ScriptManager.RegisterClientScriptBlock(UpdatePanel1, typeof(UpdatePanel), "Redirect", "window.close();window.opener.location.reload(true);", true);
}
}
Works great when child is http
Not Working when child is https
Please help me.
AFAIK this is not possible due to cross-domain scripting restrictions and HTTP->HTTPS is considered cross domain. You may take a look at the following article for a workaround using an iframe.