<%
Dim a
a=""
if  a=""  then 
     Response.Write "<Script language='javascript'>alert('出错!!面页没通过合法验证!请先登录! '); location.replace('tmp.htm');</Script>"
      Response.end 
end if    
%>

解决方案 »

  1.   

    <%
    if  a=""  then 
         Response.Write "<Script language='javascript'>alert('出错!!面页没通过合法验证!请先登录! '); self.location = 'tmp.htm';</Script>"
                                         
          Response.end 
     end if    
    %>self.location
    top.location
    都可以,看你对框架变动的要求~~~~
      

  2.   

    Response.Write "<Script language='javascript'>alert('出错!!面页没通过合法验证!请先登录! ');window.location.href="重定向页面";</Script>"