如何关闭通过asp.net中的Response.Redirect()打开的选项卡

时间:2016-01-14 10:19:22

标签: javascript c# asp.net

使用了诸如

之类的代码
 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);
}

0 个答案:

没有答案