运用模态打开页面
然后把页面的返回值记录到SESSION
返回时刷新页面 
读取SESSION

解决方案 »

  1.   

    我只会打开新窗口
    在页面里写一个js函数"'OpenerSub(id)"。这个函数用于打开模式窗口。具体类似 function OpenerSub(id)
    {
        var url = 'xxx.aspx?id_update='+id;
        var vReturn = '';
        var strFeature = 'height=300, width=400,...';
        vReturn = window.showModalDialog(url,window,strFeature);
    }
      

  2.   

    vs05中如何点击按钮弹出新窗口,如何传值回父页面
    --
    首先,
    用个HTML按扭,在<head></head>之间加上    
    <script id="Infragistics" type="text/javascript">
    <!--
    function Move()
    {
       window.showModalDialog("Default.aspx?");
    }// -->
    </script>
    将按扭的源码写成这样:
    <input id="Button1" onclick="Move()" type="button" value="button" /></div>
    以上点击即可弹出一个新页面其次,在弹出页面中添加一个按扭,在按扭事件里写
    Response.Redirect("弹出窗体.aspx?ID=" + "1");最后,修改弹出窗体.aspx的代码为    protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Request.Params["ID"] != null)
                {
                    TextBox1.Text = Request.Params["ID"].ToString();
                }
            }
        }OK了
      

  3.   

    var myResult = window.showModalDialog(url,window,"menubar=no,toolbar=no,location=no,directories=no,status=no,width=240,height=400,left=350,top=150,scrollbars=no,status=yes,resizable=no");
    myResult 可以根据需要选择类型
      

  4.   

    opener.htm
    <html> 
    <head> 
    <title>Opener</title> 
    </head> 
    <body> 
    <input type="text" id="txtMy"/>
    <button onclick="window.open('child.htm','add','menubar=0,height=100,width=400,statusbar=0,top=100,left=200')">打开添加页面</button>
    </body> 
    </html> child.htm
    <html>
    <head>
    <title>Son</title>
    </head>
    <body>
    显示文本:<input type='text' id='txt'/><br/>
    <button onclick="AddOp()">传递显示文本到Opener</button>
    <script>
    function AddOp()
    {
      opener.document.getElementById('txtMy').value=document.getElementById('txt').value;
      self.close();
    }
    </script>
    </body>
    </html>
      

  5.   

    opener.document.getElementById('txtMy').value=document.getElementById('txt').value;
    关键
      

  6.   

    http://dotnet.aspx.cc/article/49ml4ao8-5pb3-4kny-njzd-ljoioxv4m1x4/read.aspx