当前位置: 代码迷 >> ASP.NET >> 急第二贴
  详细解决方案

急第二贴

热度:3165   发布时间:2013-02-26 00:00:00.0
急!~!~!第二贴求助
用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
  相关解决方案