兄弟我,现在需要在asp.net中的一个页面,
例:index2.aspx中,点击一个button后,在对应的index2.vb文件的button_Click事件中响应
我要做到,弹一个消息窗口(alert就可以),
然后,跳转到另一个画面index1.aspx,
并刷新index1.aspx现在的做法是在button_Click事件中
 Page.RegisterStartupScript("dgscript", "<script Language='Javascript'>alert('" test "')</script>")如果,在button_Click 事件中添加
 Response.Redirect("index1.aspx")
但是,这样,就不能跳转到index1.aspx. 
请问各位有何高见!!!,小弟急需!!

解决方案 »

  1.   

    <script Language='Javascript'>
    alert(MessageStr);
    window.location=LocationStr;
    </script>
      

  2.   

    Response.Write("<script Language='Javascript'>");
    Response.Write("alert('MessageStr');");
    Response.Write("window.location=LocationStr;");
    Response.Write("</script>");
      

  3.   

    Page.RegisterStartupScript("dgscript", "<script Language='Javascript'>alert('test ');this.location.href='index1.aspx'</script>");
      

  4.   

    在脚本里实现跳转this.location.href='index1.aspx'