首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

问个非常简单的有关问题`

2012-01-02 
问个非常简单的问题``````在线等manage.aspx页面framesetrows * cols 190,* framespacing 0 fra

问个非常简单的问题``````在线等
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 ';

热点排行