悬赏分:20 浏览:576 次
父页面有一函数用来打开网页如下:
<script language="javascript">
function EditOpen(ID)
{
;
return false;
}
</script>
按钮调用这个函数,弹出页关闭时调用window.opener.location.href=window.opener.location.href;window.opener=null;window.close();
OK,没有问题,能刷新到父页面。
但是如果在GridView的模块列里调用,则刷新不了。为什么呢?
如:
<asp:TemplateField HeaderText="操作">
<itemstyle horizontalalign="Center" />
<headerstyle width="10%"> </headerstyle>
<itemtemplate>
<a href="#" onclick="***EditOpen( <%#Eval("id")%> )"> 编辑 </a>
</itemtemplate>
</asp:TemplateField>
在模板列了放了
<a href="#" onclick="***EditOpen( <%#Eval("id")%> )"> 编辑 </a>
能弹出窗口,ID值也能传过去。
问题是弹出来后,关闭时刷新不了父页面。
|
5个月前 阿一 : 不行的。 |