日期:2014-05-19  浏览次数:20683 次

急!~!~!第二贴求助
用Page.RegisterStartupScript( "12 ", " <script> showModalDialog( ' "+url+ " ', ' ', 'dialogWidth:450px;dialogheight:210px;center:yes;status:no;scroll:no; ') </script> ");打开模式对话框怎么样实现在它关闭时刷新主页面的数据(DataGrid)....能调主页面的Load事件也行........


------解决方案--------------------
</script> "); ==> ;window.location.href= window.location.href </script> "); 或 document.getElementById( "Button1 ").click(); </script> ");
------解决方案--------------------
UP

------解决方案--------------------
在打开的ModalDialog的关闭事件中写:
window.opener.location.href = window.opener.location.href