有两个页面:a.aspx,b.aspx。 
从a.aspx连接到了b.aspx。 现在要在b.aspx页面做的是: 
1、在b.aspx页面停留5秒 
2、5秒后自动跳转到a.aspx页面。 
请问这两个功能如何做代码? 
谢谢

解决方案 »

  1.   

    最简单的方法
    ,在head里加一句
    <meta http-equiv="refresh" content="5;URL=a.aspx">
      

  2.   

    在b页面写如下js代码:
      setTimeout("window.location.href='a.aspx'",5000) 试试
      

  3.   

    <meta http-equiv="refresh" content="5;URL=a.aspx"> 
      

  4.   

    要在b.aspx的.cs页面里面写代码,该如何写啊?
    不是采用head里面加的方法。
      

  5.   

    Response.Write("<script>setTimeout(\"location.href='a.aspx'\",5000)script>");
    单位是毫秒