Response.Write("<script>window.top.location='../index.aspx'</script>");
弹出一个新的页面(index.aspx)但是之前有个index.aspx页面  所以想让这个新的页面覆盖之前那个就的index.aspx页面最好在  .cs 格式的页面中写??高手们??

解决方案 »

  1.   

    旧的index.aspx在哪里,直接设置那个窗口的url=新的url就行了
      

  2.   

    什么叫做旧的在哪里啊?
    这两个index.aspx  其实就是一个 只不过是分两次打开而已  要求把这两次合并成一次
      

  3.   

    新窗口中打开
    Response.Write(" <script>window.top.location='../index.aspx' target='_blank' </script>"); 
      

  4.   

    把楼上的_blank改成_self就是在本页面打开新页面了..
      

  5.   


    _blank 是指在新窗口中打开。而self是指在当前页面中进行打开。。所以在这儿根据你的要求你要用_blank属性进行显示。。新窗口中打开      Response.Write(" <script>window.top.location='../index.aspx' target='_blank' </script>");  试试吧。。应该会行的