※★50分!!!紧急!frameset和seesion的问题????
admin.aspx代码如下:
<frameset rows= "120,* "> <frame src= "top.aspx " scrolling= "no " />
<frameset cols= "180,* " frameborder= "1 " border= "6 " framespacing= "5 " bordercolor= "#A1C7F9 ">
<frame name= "sidebarFrame " src= "left.aspx " scrolling= "no " frameborder= "0 " />
<frame name= "ContentFrame " src= "AboutUs.aspx " frameborder= "0 " />
</frameset>
</frameset>
-------------
在left.aspx里面有个 "退出 "的linkbutton,程序如下:
protected void LinkButton1_Click(object sender, EventArgs e)
{
Session.Clear();
Response.Write( " <script language=javascript> admin.location.href= 'login.aspx '; </script> ");
}
这样仅仅sidebarFrame返回登陆页面,我想让admin.aspx返回应该怎么写???
求求各位了!!!!
拜托!!!!!!!
------解决方案--------------------window.top.location.href= "url "
------解决方案--------------------protected void LinkButton1_Click(object sender, EventArgs e)
{
Session.Clear();
Response.Write( " <script language= 'javascript '> parent.document.location.href= 'login.aspx '; </script> ");
}