日期:2014-05-18  浏览次数:20461 次

问个非常简单的问题``````在线等
manage.aspx页面

<frameset   rows= "* "   cols= "190,* "   framespacing= "0 "   frameborder= "no "   border= "0 ">
        <frame   src= "left.aspx "   name= "leftFrame "   scrolling= "yes "   noresize= "noresize "   id= "leftFrame "   title= "leftFrame "   />
        <frame   src= "contact.aspx "   name= "mainFrame "   id= "mainFrame "   title= "mainFrame "   />
</frameset>

===================================================================
contact.aspx里的一段JAVASCRIPT代码......提示用户修改成功

Page.ClientScript.RegisterStartupScript(typeof(string),   "UpdtProdOK ",
" <script   language= 'javascript '> "   + "window.alert( '修改成功! ');window.location.href= '/admin/manage.aspx '; "   +
                " </ "   +   "script> ");

所以修改成功后,在frameset右边弹出了manage.aspx造成窗口重复了

请问如何用JAVASCRIPT解决,谢谢!!!!



------解决方案--------------------
你是不是让整个页面刷新?

可以用这个:
window.parent.location.href= '/admin/manage.aspx ';