在index.aspx页面用lhgdialog.opendlg弹出了一个connectus.aspx页面,
代码:
lhgdialog.opendlg( '您好!请留下您的联系方式', 'ConnectUs.aspx', 300, 200, false, false, '', true, { top:150, left:300 } );现在在connectus.aspx页面里有一个按钮Button1,点击Button1,想关闭connectus.aspx,这样写不行啊protected void Button1_Click(object sender, EventArgs e)
{
Response.Write(" <script>window.opener = null;window.close();</script>");
}这样写也还是不行啊protected void Button1_Click(object sender, EventArgs e)
{
Response.Write(" <script>window.parent.opener = null;window.parent.close();</script>");
}不能关闭connectus.aspx,为什么啊?请高人指点小弟该如何写!
代码:
lhgdialog.opendlg( '您好!请留下您的联系方式', 'ConnectUs.aspx', 300, 200, false, false, '', true, { top:150, left:300 } );现在在connectus.aspx页面里有一个按钮Button1,点击Button1,想关闭connectus.aspx,这样写不行啊protected void Button1_Click(object sender, EventArgs e)
{
Response.Write(" <script>window.opener = null;window.close();</script>");
}这样写也还是不行啊protected void Button1_Click(object sender, EventArgs e)
{
Response.Write(" <script>window.parent.opener = null;window.parent.close();</script>");
}不能关闭connectus.aspx,为什么啊?请高人指点小弟该如何写!
解决方案 »
- 找不到请求的 .Net Framework Data Provider。可能没有安装
- 我们公司是通过adsl上网,在外地出差一般是在用户单位上网,怎样解决代码管理的问题?
- textbox的一个换行小问题
- 请教一个问题
- 时间日期问题,请帮忙!
- .net3.5MVC windows2003server iis6 下映射怎么做
- 怎样在asp.net中调用其它windows的应用程序呀?
- 请问:如何做一个使DataGrid的数据随滚动条滚动,而数据表头固定的效果,但横向拉动滚动条时整个表都随着动
- asp.net 母版页load 与 子页load 方法的先后顺序
- 这个问题有点怪,就是取不值?请大家指点
- .net用户注册验证
- 用itextsharp将html代码转为PDF时中文问题解决了,但是怎么不能转图片和表格
例子:function open6()
{
lhgdialog.opendlg( '被调用页面关闭的窗口', '_content/content1.html', 400, 300, false, false, 'win1' );
}
function closdlg()
{
lhgdialog.closdlg('win1');
} =========================================<input type="button" id="f" value="被调用页面关闭的窗口" onclick="open6()"/>
<input type="button" value="关闭弹出窗口" onclick="closdlg();"/>