主页面分成三部分,TopFrame,LeftFrame,RightFrame,我想在RightFrame里的页面单击一个按钮刷新LeftFrame里的页面,代码如下: Response.Write("<script language=javascript>window.parent.LeftFrame.location.href='Left.aspx'</script>"); 可是单击按钮没有反应,而且,用showModalDialog无法弹出新窗口,是不是我的ASP。net什么设置禁用了Javascript啊?帮帮忙啊,这个问题困扰我好几天了,刚刚学习就遇到困难了啊!
比如
<a href="MessageManage.aspx" target="left">滚动消息管理</a>
<script type="text/javascript" language="javascript">
function showModel()
{
window.showModalDialog("http://localhost:2497/Begin0810/OrgInfo.aspx",window,"dialogWidth=500px;dialogHeight=300px;center=yes;status=no");
}
</script>
这段代码在FrontPage和单纯的Html里都能用,在ASp。net2.0里就是无法弹出窗口,郁闷啊
Response.Write("<script language=javascript>top.LeftFrame.location.href=top.LeftFrame.location.href</script>");