使用了诸如
之类的代码 window.close();
或
parent.close();
或
self.close();
或
open(location, '_self').close();
或
window.open('','_self');
window.close();
或
window.open('', '_parent', '');
window.close();
或
open(location, '_self').close();
给出了错误。
Scripts may close only the windows that were opened by it.
我将如何解决它。
protected void ibtLogin_Click(object sender, ImageClickEventArgs e)
{
Session["uId"] = dtbUserAuthentication.Rows[0]["idx_Users"].ToString();
Response.Redirect("ApplyNow.aspx?Userid=" + Data.Encrypt(uId), false);
}