<a class="blue" href="../登录.aspx?method=logout" target="_parent" onclick="return confirm('确定要退出吗?');">安全退出</a>
就是判断if (session["UsersID"]==null)
{
这里应该怎样写呢。我用的是框架。
// Response.Redirect("~/登录.aspx");写成这样是不行的。只会跳转网页的一部分。
}
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Main.aspx.cs" Inherits="Main" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
</head>
<frameset rows="63,*,32" cols="*" frameborder="no" border="0" framespacing="0">
<frame src="Top.aspx" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" title="topFrame" />
<frameset rows="*" cols="177,*" framespacing="0" frameborder="no" border="0">
<frame src="Menu.aspx" name="left" scrolling="yes" noresize="noresize" />
<frame src="Desk.aspx" name="right" scrolling="yes" noresize="noresize" />
</frameset>
<frame src="Bottom.aspx" name="bottomFrame" scrolling="No" noresize="noresize" id="bottomFrame" title="bottomFrame" />
</frameset>
<noframes>
</noframes>
</html>