问题描述
父页面:functionqueryDialog(){varhid=document.getElementById("hid");vars=newObject();//vark="";s.txt=hid.value;//alert("s的值:"+s.txt);window.showModalDialog("../Share/News_Plural.aspx",window,"dialogWidth:500px;dialogHeight:220px;help:no;location:no;status:no;");//if(typeof(s.txt)!="undefined")//{//hid.value=s.txt;//alert(hid.value);//}}对话框页面:functionsend(){vars=newObject();s.txt="";vartime=document.getElementById("time");vartitle=document.getElementById("title");varcont=document.getElementById("content");s.txt=time.value+title.value+cont.value;s.txt="wheretitlelike'%"+title.value+"%'andcontentlike'%"+cont.value+"%'andannounce_datelike'%"+time.value+"%'";//傳值window.returnValue=s;alert(s.txt);window.close();window.dialogArguments.location.reload();}父页面是个datagrid显示数据,要想在打开的对话框中选择条件后,根据条件查询新的数据集然后刷新父页面,该怎么做,我头都搞昏了!