请指教,谢谢
解决方案 »
- vs2008 与ie8 不兼容的问题
- asp.net头文件问题
- 各位大神,请教一个错误
- gridview 刷新的问题(在线=)
- 100分求泛域名问题
- 怎样在.cs页面中把将要执行的SQL语句显示出来看看?希望知道类似于delphi中的showmessage的用法
- datagrid中checkbox 敬请高手指点!
- 如何把数据库中的多个表一次性导入到DATASET中
- Page.Response.OutputStream 是做什么用的?是不是输出的stream
- 如何返回刚插插入到数据库中的自动编号列?
- 怎样插入图片?
- C#问题:Request is not available in this context?函数里不能用Request对象?
opener.refresh
self.close();
Response.Write ("<script>opener.location.reload();</script>");
this.Response.Write("<script>");
this.Response.Write("window.close();");
this.Response.Write("</script>");在button的onclick事件中加入上面的代码就可以实现,我试过了。
this.RegisterStartupScript("Open","<script>window.showModalDialog('b.aspx');window.location.href=window.location.href</script>");
这样b.aspx关闭后会自动刷新A.aspx
window.showModalDialog('新页面','' ,'dialogHeight:420px;dialogWidth:680px');
location.href=当前页面?';</script>");
Response.Write(@"<script language='javascript'>
window.showModalDialog('新页面','' ,'dialogHeight:420px;dialogWidth:680px');
location.href=当前页面';</script>");