一个很急得问题,今天就要搞定的!
我用C#编了一个系统,用的是三层结构,
<frameset rows= "76,* " cols= "* " frameborder= "NO " border= "0 " framespacing= "0 ">
<frame src= "providerheader1.aspx " name= "topFrame " scrolling= "no ">
<frameset cols= "195,17,66% " frameborder= "yes " border= "4 " framespacing= "3 " >
<frame src= "tree.htm " name= "leftFrame " scrolling= "yes " noresize>
<frame src= "change.htm " name= "middleFrame " scrolling= "no " noresize>
<frame src= "welcome.aspx " scrolling= "yes " name= "mainFrame ">
</frameset>
</frameset>
在providerheader1.aspx中,有一句话是 : <td width= "6% "> <a href= "http://localhost/webinterface/rb_grinding.aspx "> <img src= "./images/desktop1.gif " border= "0 " width= "16 " height= "16 "> <font color= "white "> Log out </font> </a> </td>
我的目的是想:当我点击log out后,页面连接到http://localhost/webinterface/rb_grinding.aspx, 结果是可以连接过去,但是问题是: 连接的部分只是显示在topframe部分,其他部分,leftFrame, mainFrame都没有覆盖掉。
我的问题是,有谁知道什么方法,在点击log out后,整个页面都连接到http://localhost/webinterface/rb_grinding.aspx? 谢谢了,
------解决方案--------------------跳出窗口直接加个属性 target= "_parent "
------解决方案-------------------- <a href= "http://localhost/webinterface/rb_grinding.aspx " target= "_top "> <
------解决方案--------------------或者在
rb_grinding.aspx里写
<script>
if(self != top)
top.location.href=self.location.href
</script>
------解决方案-------------------- <a target= "_top " href= "? "> 连接 </a>
------解决方案--------------------mark
------解决方案--------------------在顶部或父窗口打开.
------解决方案--------------------net_lover(【孟子E章】) 正解
----------------------------------------------------
企城 中小型企业供应链管理平台 http://www.7ecity.com/
------解决方案--------------------document.location = "XXX ";
------解决方案--------------------if(Session[ "UserName "]==null ||Session[ "UserName "].ToString().Trim()== " ")
{
Response.Write( " <script language= 'javascript '> " + "window.location.href(rb_grinding.aspx) " + " </script> ");
Response.End();
}
在all.aspx页面的Page_Load()里最前面写上上面的代码就可以了.
------解决方案--------------------当我点击log out后,页面连接到http://localhost/webinterface/rb_grinding.aspx, 还有同时会将Session里面的值给删除掉,请问有什么好的方法??
当我点击log out后,页面连接到http://localhost/webinterface/rb_grinding.aspx方法同上.
清Session:
Session[ "UserName "]==null