protected void Page_Load(object sender, System.EventArgs e)
{
check_Login();
}
public void check_Login()
{
if ((Session["UserName"] == null))
{
Response.Write("<script>alert('还未登录');parent.location.href=login.aspx';</script>");
Response.End();
}
}