3个页面 click.aspx 、 login.aspx 、 passport.aspx 我是做一个页面转向的问题,跟cdsn的登陆的效果一样,保存登陆前的网页地址click.aspx中点击LOGIN按钮的同时保存下该页面的URL地址放入Session,并转向login.aspx页面,在login.aspx页面如果能成功登陆的话,会转向passport.aspx,
在该页中获得保存着click.aspx的Session值,并在3秒后直接转向click.aspx我在passport.aspx的前台写了script:<script type="text/javascript">
function jump(d)
{
document.location=d;
}
</script>Page_Load()中:if (!Page.IsPostBack)
{
if (Session["locat"] != null)
{
string locat = Session["locat"].ToString();
Response.Write("<script type='text/javascript'>");
Response.Write("var jump=setTimeout(xxxxx,1000)");
//请问,xxxx 这里该怎么写才对?
Response.Write("</script>");
}
}
谢谢大家。
在该页中获得保存着click.aspx的Session值,并在3秒后直接转向click.aspx我在passport.aspx的前台写了script:<script type="text/javascript">
function jump(d)
{
document.location=d;
}
</script>Page_Load()中:if (!Page.IsPostBack)
{
if (Session["locat"] != null)
{
string locat = Session["locat"].ToString();
Response.Write("<script type='text/javascript'>");
Response.Write("var jump=setTimeout(xxxxx,1000)");
//请问,xxxx 这里该怎么写才对?
Response.Write("</script>");
}
}
谢谢大家。
{
base.Render(writer);
if (!IsPostBack)
{
if (Session["locat"] != null)
{
string locat = Session["locat"].ToString();
Response.Write("<script type='text/javascript'>");
Response.Write("var jump=setTimeout(xxxxx,1000)");
//请问,xxxx 这里该怎么写才对?
Response.Write("</script>");
}
} }
Render方法是在System.Web.UI.Page中,在OnRender的时候触发
Response.Write(strMsg);