Response.Write("<script> alert('留言成功');</script>");
   Response.Redirect("kehuliuyan.aspx");
如何实现点击弹出框里的“确实”以后它自动跳转到kehuliuyan.aspx这个页面

解决方案 »

  1.   

    response.Write("<script language='javascript'>alert('留言成功!');window.location.href='kehuliuyan.aspx';</script>")
    response.End()
      

  2.   

    response.Write("<script language='javascript'>alert('留言成功!');window.location.href='kehuliuyan.aspx';</script>")
      

  3.   


    Response.Write("<script langrage=javascript>(alert('留言成功!'))window.location.href='kehuliuyan.aspx';</script>");
      

  4.   


    这个效果好一点,都是一句话的事
    Page.RegisterStartupScript("herf","<script language='javascript'>alert('留言成功!');window.location.href='kehuliuyan.aspx';</script>");
      

  5.   

    response.Write("<script language='javascript'>alert('留言成功!');window.location.href='kehuliuyan.aspx';</script>")