asp.net主窗口弹出一个页面子窗口,在子窗口上进行相应的选择数据确定后,传值到主窗解决思路

asp.net主窗口弹出一个页面子窗口,在子窗口上进行相应的选择数据确定后,传值到主窗
能不能进行不刷新传值到主窗口,

用什么方法来传递?

------解决方案--------------------
父窗口:
loading里:

btnSelectValue.Attributes.Add( "onclick ", "window.open( 'test.aspx?ElementID= " + tbxGetValue.ClientID + " ', ' ', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,width=740,height=460,left= '+(screen.width-700)/2+ ',top= '+(screen.height-460)/2);return false ");

tbxGetValue 要赋值的textbox的id

子窗口:function SetParentValueEx(ElementID,ElementValue)
{
var jsCode = "window.opener.document.getElementById( ' " + ElementID + " ').value = ' " + ElementValue + " ' ";
eval(jsCode);
self.close();
}
------解决方案--------------------
不刷新就用JS调用并且传值吧~

function ShowDlg()
{
var ret = window.showModalDialog( "CoCorpDefView.aspx ",null,
"dialogWidth:860px;dialogHeight:640px;help:no;status:no ");
//无刷新(使用方法时加return)
return false;//ret就是传回来的值
}
子(模态对话框)
function GetFileValue(sender, args)
{
var listItem = 取得的值
window.returnValue = listItem;
window.close();
}
------解决方案--------------------
http://dotnet.aspx.cc/article/49ml4ao8-5pb3-4kny-njzd-ljoioxv4m1x4/read.aspx