<meta HTTP-EQUIV=REFRESH CONTENT='2;URL=ok.aspx'>
用这种转到不好吗

解决方案 »

  1.   

    <meta http-equiv="refresh" content="5;URL=index.htm">
      

  2.   

    在源代码中的<BODY>后面加入如下代码:
    < script LANGUAGE="JavaScript"> <!-- 
    setTimeout('location.href = index.html;', 60000);
    --> < /script>
    在代码中的60000表示1分钟,它是以毫秒为单位的。
      

  3.   

    设置5秒延迟,然后
    Server.Transfer("newpage.aspx")或Response.Redirect("newpage.aspx")
    5秒延迟可能使用while
    {
    }循环,判断当前时间与初始时间的间隔为<5秒则继续循环。
      

  4.   

    <meta HTTP-EQUIV=REFRESH CONTENT='5;URL=ok.aspx'>
    对,这样就行了。。void Page_Load(Object Src,EventArgs E)
    {
    Response.Redirect("ok.htm");
    }
      

  5.   

    Response.Write("<script>setTimeout('location.href = index.html;', 60000);</script>");
      

  6.   

    服务端可以这样
    用timer设置延时时间
    System.Timers.Timer tm=new System.Timers.Timer(5000);//5s
    tm.AutoReset=false; //这里如果设置为true那么就每5s触发一次下面的事件,false只发生一次
    tm.Elapsed+=new System.Timers.ElapsedEventHandler(tm_Elapsed);//添加5s后要触发的事件
    tm.Start();
    //////////////事件///////////////////////
    private void tm_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
    {
         Response.Redirect("newpage.aspx"); //重定向到新的页面
    }
      

  7.   

    都不行啊,服务器的time空间能在aspnet中用吗?你试过??
    他根本是无效的,不管设置了还是没设置
    谁能讲一下System.Timer.Time空间可以在aspnet中用吗,如果可以,那要怎么才可以实现啊?比如我想让一个变量没5秒就加1
    谢谢
      

  8.   

    可以这样做呀:
    在Page.html文件的<head>区:
    <script language="javascript">
    function openit()
    {
        setTimeout("self.open()",5000)
    }
    </script>
    然后在注册成功之后调用这个函数.
      

  9.   

    <meta http-equiv="refresh" content="5;URL=index.htm">
      

  10.   

    <meta http-equiv="refresh" content="5;URL=index.htm">
      

  11.   

    停留n秒後轉址:
    <script>
    window.setTimeout( "location.href='http://www.sohu.com'" , 2*1000 ) ;
    </script>
      

  12.   

    用js吧;b/s下你不能不用的呀。Response.Write("<script>setTimeout('location.href = index.html;', 60000);</script>");
      

  13.   

    To   musicllm(编程雨生)我当然是用过,用System.Timers.Timer 做的邮件炸弹,可以自由设置发送间隔注意是System.Timers空间!!
      

  14.   

    在web.config 中可能可以设置,timeout="5" LoginUrl"xx.aspx"