<input type="button" id="btnUpdateNotion" value="修改" 
onclick="window.showModalDialog('Notion.aspx?
time=<%#DataBinder.Eval(Container.DataItem,"开始时间")%>',window);"></button>点击这个弹出新窗口
在新窗口里有个下拉列表(DropDownList)自动提交设为TRUE,当列表选项改变时,会自动新弹出Notion.aspx页面…………以前没遇到过的事,不知道如何解决?2005下开发的

解决方案 »

  1.   

    在新页面的head里面加上
    <base target=_self></base>
      

  2.   

    感觉描述有点乱
    是在点“修改”按钮的时候弹出Notion.aspx?还是在DropDownList改变是弹出Notion.aspx
      

  3.   

    呵呵,楼上一回答,我明白了
    一楼说的对,在showModalDialog的模态窗体中必须加上<base target=_self></base>
    才可以提交,否则就会弹出新的窗口了
      

  4.   

    <base target=_self></base>
    --------------不管用
    是在点“修改”按钮的时候弹出Notion.aspx?还是在DropDownList改变是弹出Notion.aspx
    -------------------------
    在点击Dropdownlist时会弹出新窗口。
    protected void ddlYiJian_SelectedIndexChanged(object sender, EventArgs e)
        {
                try
                {
                    string[] recordInfo = lblRecordInfo.Text.Split(Radio.RadioParameters.Split.ToCharArray());
                    DateTime time = DateTime.Parse(recordInfo[0]);
                    string device = recordInfo[1];
                    string card = recordInfo[2];//更新下数据库                lblMsg.Text = "更新成功";
                }
                catch
                {
                    lblMsg.Text = "更新失败";
                }
            }
        }
      

  5.   

    问题解决一楼的方法  散分http://community.csdn.net/Expert/TopicView3.asp?id=5492182散分帖