验证码验证的时候,Session总是为空
十年的小白 2008-06-21 04:09:08 1.validatepage.aspx页面中:
protected void Page_Load(object sender, EventArgs e)
{
gif = RndNum();//获得验证码
...
Session["validator"] = gif; //session
}
2. 在注册页面中想取出Session内容
protected void Page_Load(object sender, EventArgs e)
{
validationImage.ImageUrl = "validatepage.aspx";
if (Session["validator"] != null)
{
lblTemp.Text = Session["validator"].ToString();
}
红色的语句始终进不去...
}
请大家帮忙,没有分 不好意思.