一,页面第一次加载的时候执行
script = "javascript:var str=window.showModalDialog('JC_CitizenSearch.aspx', '', 'dialogHeight=380px;dialogWidth=650px;toolbar =no; menubar=no; scrollbars=no;resizable=no; location=no;status=no;scroll=no');"
//+ "document.form1.Hidden1.value=str;";
//使用了母版页后,ID会发生改变
+ "document.getElementById('ctl00_ContentPlaceHolder1_Hidden1').value=str";
btnSelPatient.Attributes["onclick"] = script;
二,页面放一个Hidden隐藏域,就是('ctl00_ContentPlaceHolder1_Hidden1')得到返回值,执行按钮范围内的所有内容