第一次加载传个参数,
加载后检测,如果有参数,就重新加载并去掉参数
例:asp的
index.asp?refresh=trueif request.querystring("refresh") = "true" then
  response.redirect("index.asp")
end if

解决方案 »

  1.   

    还有,网站进入后到index.asp页呢,还是到index.asp?refresh=true页....
    不太明白
      

  2.   

    还有refresh是哪里来的?不明白请教一下大虾
      

  3.   

    先进到index.asp页面,让后在传递一个参数转到index.asp?refrash=true
      

  4.   

    使用cookie或者session,为空时就自动刷新,不为空了就不刷新了
      

  5.   

    index.asp?refrash=true 比如在页面顶部加<%if request("refrash")<>true then
    response.redirect "index.asp?refrash=true"
    end if%>
      

  6.   

    还是不懂...request("refrash")是从哪里来的? 
    5555
      

  7.   

    汗!!!!!!!!!
    无语了
    难道不懂request这个对象?
      

  8.   

    这是javascript版。用js当然能轻松搞定。下面给出伪代码,因为我不曾调试。if(window.location.search.indexOf("refreshed")<0) //说明没被刷新过
    {
       window.location=window.location+"&refreshed";//我不知道你的URL是怎么样的,加?还是加&,自己判断吧。
    }
    原理就是这样。修行看个人啦。@_@
      

  9.   

    request对象俺知道,这里面request("refrash")的"refrash"是哪里来的?搞不懂..
      

  10.   

    可不可以像这样  if(!ispostpage)
      {
         reponse.Redirect("index.asp")
      }可不可以问一下,这样有什么意义啊?
      

  11.   


    我的URL是这样的:
    http://www.bulux.cn/products.asp?id=410
    请教一下,进入这个页面后,怎么才能立即刷新一次呢???
      

  12.   

    我找了一个比较好的,奉献给大家了:
    <Script>
    function reurl(){url = location.href; //把当前页面的地址赋给变量 urlvar times = url.split("?"); //分切变量 url 分隔符号为 "?"if(times[1] != 1){ //如果?后的值不等于1表示没有刷新url += "?1"; //把变量 url 的值加入 ?1self.location.replace(url); //刷新页面}
    }onload=reurl</script>
    原理充分利用地址栏可带参数的选项,用脚本来取得页面间的传递参数,并不需要后台程序的支持。 
      

  13.   

    14楼的不大对.试试这样的.
    <code>
      if(window.location.href.indexOf("refreshed") < 0){
          window.location+="&refreshed";
      }
    </code>