我这儿有三个页面:
a页面 以showModalDialog 的方式打开 b页面
b页面 以showModalDialog 的方式打开 c页面
 
a b c 按个页面中,head 标签中都加上了 <base target="_self" />  问题是 我在关闭c页面时,老是弹出一个新的页面,显示的是b页面的内容,我不想弹出新页面--关闭c页面回到已有的b页面关闭b页面回到已有的a页面
这个怎么实现呢?

解决方案 »

  1.   

    <meta http-equiv="pragma" content="no-cache"/>
    追加上这个看一看
      

  2.   

    用viewstate保存页面信息,在这儿肯能不太好,页面上的信息有很多<meta http-equiv="pragma" content="no-cache"/> 这个是追加在<head>里面吗,如果是的话,我试过了,还是不可以嵌入到Iframe中试试---这个好像不行,,应为子页必须是弹出来的 
      

  3.   

    代码是这样的:
    a.aspx页面中 window.showModalDialog("b.aspx?htno=" + htno, "", "dialogWidth=850px;dialogHeight=850px; center=yes;resizable=yes;status=yes;edge=raised;");b.aspx页面中window.showModalDialog('c.aspx');location.replace(location.href);return false;点击c页面右上角的叉叉,要回到b页面,点击b页面的叉叉有会到a页面现在是回到b页面会弹出新页面,回到a页面不会有新页面
      

  4.   

    1、如果是IE6,你将<base target="_self"/>加入到<head>标签里就可以了。2、如果是IE7,你必须将<base target="_self"/>加入到<head>的对口中位置(就是要紧接着<title>标签写)。
    如:<head runat="server">
      <title>无标题页</title>
      <meta http-equiv="pragma" content="no-cache" />
      <base target="_self" />
      ...............
      ...............
    </head>
      

  5.   

    我这边是ie8,你说的这样:
    :<head runat="server">
      <title>无标题页</title>
      <meta http-equiv="pragma" content="no-cache" />
      <base target="_self" />
      ...............
      ...............
    </head>
    我试过了,,,不管是加一个页面还是两个页面还是三个页面,,都不可以啊,,,不知道问题出在哪
      

  6.   

    ie 不能换啊,,项目的样式是按着ie8做的,换了就要条样式了
      

  7.   

    放在frameset里面,可以兼容所有版本的浏览器。方法参见
    http://dotnet.aspx.cc/article/00000000-0000-0000-0000-00000000000f/read.aspx
      

  8.   

    function reloadParent(){
       var url=window.dialogArguments.location;
       
        window.dialogArguments.location=url;
        this.close();}关闭B页面的时候  调用这个  
    function reloadParentNoMes(){
       var url=window.dialogArguments.location;
       
        window.dialogArguments.location=url;    this.close(); 
         
    }关闭C页面的时候试试这个。
      

  9.   

     
    function reloadParentNoMes(){
      var url=window.dialogArguments.location;
        
      window.dialogArguments.location=url;//替换成window.dialogArguments.close(); }
     
      

  10.   

    仔细看看b页面代码 
    b.aspx页面中window.showModalDialog('c.aspx');location.replace(location.href);return false;上面代码的意思是当c页面关闭以后,b页面执行一次刷新,我怀疑b页面在刷新时候执行了弹出b页面的代码
      

  11.   


    我也怀疑location.replace(location.href);惹的祸,LZ这句到底用来干嘛?
      

  12.   

    20和21楼说的是的就是多了location.replace(location.href);return false;
    这句话,把两个子页面的这句话删掉,就不存在这个问题了
    谢谢大家