当前位置: 代码迷 >> ASP.NET >> 怪事 更新后自动弹出新窗口 在线=解决办法
  详细解决方案

怪事 更新后自动弹出新窗口 在线=解决办法

热度:7243   发布时间:2013-02-26 00:00:00.0
怪事 更新后自动弹出新窗口 在线=
<input   type= "button "   id= "btnUpdateNotion "   value= "修改 "  
onclick= "window.showModalDialog( 'Notion.aspx?
time= <%#DataBinder.Eval(Container.DataItem, "开始时间 ")%> ',window); "> </button>

点击这个弹出新窗口


在新窗口里有个下拉列表(DropDownList)自动提交设为TRUE,当列表选项改变时,会自动新弹出Notion.aspx页面…………

以前没遇到过的事,不知道如何解决?

2005下开发的

------解决方案--------------------------------------------------------
在新页面的head里面加上
<base target=_self> </base>
------解决方案--------------------------------------------------------
感觉描述有点乱
是在点“修改”按钮的时候弹出Notion.aspx?还是在DropDownList改变是弹出Notion.aspx
------解决方案--------------------------------------------------------
呵呵,楼上一回答,我明白了
一楼说的对,在showModalDialog的模态窗体中必须加上 <base target=_self> </base>
才可以提交,否则就会弹出新的窗口了
  相关解决方案