后台注销后,刷新父页面
string strScript=@"<script language=""javascript"">
if(window.opener)
{
if(window.opener.parent)
{
window.opener.parent.location.href='index.html';
window.close();
}
else
{
window.opener.location='/index.html';
//window.close();
}
}
else
{
window.location='/index.html';
//window.close();
}
</script>";
Page.RegisterStartupScript("ref",strScript);
我的回答:http://space.cnblogs.com/question/14298/
window.top.document.location="logout.aspx"
后台 注销session、并页面注册一段关闭页面的js脚本。就ok