protected void Page_Load(object sender, EventArgs e)
{
if (Session["userid"] == null)
{
Response.Write(" <script> parent.window.location.href= '../login.aspx '</script> ");
} dr = Users.Users.GetUserById(int.Parse(Session["userid"].ToString()));
}
为什么不跳转到登录页面!!!
大哥,谢了
{
if (Session["userid"] == null)
{
Response.Write(" <script> parent.window.location.href= '../login.aspx '</script> ");
Response.End();
}
dr = Users.Users.GetUserById(int.Parse(Session["userid"].ToString()));
}