用javascript 中的
 window.parent.returnValue来传递值给父窗体~~不知道是不是你要的

解决方案 »

  1.   

    在a.aspx页面的某事件下给b.aspx传递参数:
    b.aspx?para=id&para2=name....
    在b.aspx获取参数:
    Request.QueryString["id"].ToString();
    Request.QueryString["id"].ToString();
      

  2.   

    主窗口
    var values=window.showModalDialog(子窗口);子窗口
    在关闭时
    window.returnValue=你想传递回去的值或对象
      

  3.   

    看看这个:http://dev.csdn.net/article/50/50471.shtm
      

  4.   


       function show(id)
          {
             window.showModalDialog("wfm_BIZ034.aspx?id="+id,window,"dialogWidth:500px;dialogHeight:350px; status:no;scroll:no"); 
          }
         
      

  5.   

    不想用JS的话用session数组,别忘了释放资源
      

  6.   

    URL传值,将你的选择加工处理一下
      

  7.   

        <script type="text/javascript">
        function ShowModal()
        {
            //得到页面上一个名为"Text1"的textbox对象的引用
            var txt=document.getElementById("Text1");
            //弹出模态窗口,并将其返回值显示在Text1中
            txt.value=window.showModalDialog('Add.aspx','','dialogHeight=250px;resizable=false');
        }
        </script>
        <script type="text/javascript">        
            function Add()
            {
                //得到模态页面上一个名为"TextMessage"的textbox对象的引用
                var text=document.getElementById("TextMessage");
                //将textbox中的值作为返回值返回给上层页面
                window.returnValue=text.value;
                //将模态页面关闭
                window.close();            
            }
            
            //判断用户是否直接关闭了模态窗口。如果是,则将返回值设置为“”
            window.onunload=function()
            {
                if(window.returnValue==undefined)
                {
                    window.returnValue="";
                }
            }
        </script>
      

  8.   


    <input class="table_in_button" onclick="javascript:ClickButton('<%# Eval("EMPID") %>|<%# Eval("EmpNAME") %>|<%# Eval("ORDERBY") %>|<%# Eval("FatherID") %>|<%# Eval("FatherEmpName") %>');" type="button" value="确定" />    val 参数 是你的文本值,用‘|’分开,然后在调用的时候 将接收到的字符串分割  
         function ClickButton(val)  
            {  
                    //需返回的信息  
                    //申请人(员工ID)[0]|姓名[1]|所属机构[2]|简码[3]
                window.returnValue=val;  
                window.close();  
            }  
        赋值  
        var str=window.showModalDialog("../../ModalDialog/EmployeeList.aspx","","dialogWidth:650px;dialogHeight:420px")//接收返回值(字符串)  
                    if(str!=null)  
                    {  
                        var arr=str.replace('^*#','\'').split("|");//分割获取单个值  
                        document.getElementById("ctl00$ContentPlaceHolder1$HiddenAscID").value=arr[0];  
                        document.getElementById("ctl00$ContentPlaceHolder1$txtAscName").value=arr[1];  
                    }