有两个文件1.ascx与2.aspx
在1.ascx中已经作了判断
if(Session["user"]==null)
{
Response.Redirect("error.aspx");
}把 1.ascx放入2.aspx中
为什么在2.aspx中,如果超过20分钟 username=Session["user"]
就会出错,
为什么没有首先执行1.ascx?
谢谢
在1.ascx中已经作了判断
if(Session["user"]==null)
{
Response.Redirect("error.aspx");
}把 1.ascx放入2.aspx中
为什么在2.aspx中,如果超过20分钟 username=Session["user"]
就会出错,
为什么没有首先执行1.ascx?
谢谢
设置以下就可以了