protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Session["username"] == null || Session["pwd"] == null)
            {

                Response.Write("<script>window.top.location.href='login.aspx '</script>");

            }
        }
    }

 

相关文章: