在弹出的模式窗口中点save close,关闭窗口,同时保存数据并刷新父窗口,应该如何实现?
解决方案 »
- 页面刷新问题
- 判断网站能否访问的问题
- APS.netMVC的ViewModel问题
- 如何datagrid绑定几条数据后加入一段代码
- CSS的revealTrans滤镜,不能随机切换样式,请求支援
- 请教vs2005中页面控件为何只能放大,而不能拖动到其它位置?
- 有什么办法让xml自动生成xsl文件?或者在写(xmltextwriter)xml文件的时候产生xsl?
- 怎么在access和sql server数据库上切换
- sql server 服务器连接问题!(答完马上加分)
- 下岗了,散分ing
- 导入Excel数据并插入数据库一个很奇怪的问题,贴出代码,大家帮帮我!
- Datalist中的LinkButton如何得到当前行?
{
this.location.href=this.location;
}
function OpenModalDialog()
{
var recdata=false;
try
{
recdata=showModalDialog("ShareSoftWareAuditingUpdate.aspx","newwindow","dialogHeight:600px;dialogWidth:800px; dialogTop:screen.height/4;dialogLeft:screen.width/4; edge:sunken ; center: Yes; help: No; resizable: No; status: No; scroll:yes;");
if(recdata==true)
{
// 刷新当前窗口
window.location.href =window.location.href;
window.location.href.reload();
}
} catch(err)
{}
}子:
在保存操作加:
string strScript = @"<script>window.returnValue=true;window.close();</script>";
this.Response.Write(strScript);
string strScript = @" <script>window.returnValue=true;window.close(); </script>"; 点保存后,主窗口中得不到返回值
子窗体 return xx;