zoukankan
html css js c++ java
刷新父窗口去掉确认对话框
一、调用
if
(
!
IsClientScriptBlockRegistered(
"
ClientScript
"
))
{
this
.HiddenField1.Value
=
"
0
"
;
string
strScript
=
"
<script>
"
+
"
\r\n
"
;
strScript
+=
"
function OpenWin(){
"
+
"
\r\n
"
;
strScript
+=
"
var str=window.open('TaskComment.aspx?TaskID=
"
+
Request.QueryString[
"
TaskID
"
].ToString().Trim()
+
"
',document.form1.HiddenField1.value,'top=200,left=240,height=220,width=420,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no')
"
+
"
\r\n
"
;
strScript
+=
"
if(str!=null) document.form1.HiddenField1.value=str
"
+
"
\r\n
"
;
strScript
+=
"
if(str!=null) document.form1.submit()
"
+
"
\r\n
"
;
strScript
+=
"
}
"
+
"
\r\n
"
;
strScript
+=
"
</script>
"
+
"
\r\n
"
;
RegisterClientScriptBlock(
"
ClientScript
"
, strScript);
}
Page.RegisterStartupScript(
""
,
"
<script>OpenWin()</script>
"
);
二、返回
Page.RegisterStartupScript(
""
,
"
<script>window.close();window.opener.location.href=window.opener.location.href;</script>
"
);
//
关键注意了,重定向父窗口
查看全文
相关阅读:
Linux上查找最大文件的 3 种方法
不念过去,不畏将来
Weblogic/WAS之Full GC监控与计算
EntityFramework:An error occurred while executing the command definition. See the inner exception for details.
1051 复数乘法(C#)
BACnet开发资料与调试工具
JS设置cookie、读取cookie、删除cookie
认识BACnet协议
Unity WebGL请求Http接口出现的Cors跨域问题
VS 2017 产品密钥
原文地址:https://www.cnblogs.com/ringwang/p/1026947.html
最新文章
线程池
Zookeeper(一)
List简介(二)
RabbitMQ
List简介(一)
connection集合
URL 和 URI(转)
ngnix简介
Elasticsearch7
django-logging
热门文章
一个 Git 分支协作模式的进化故事
python 试题
ORM介绍
Django 启动报错 UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc7
python urllib应用
URLErro和HTTPError
Tuxedo配置维护手册
was控制台及节点启动
全面复工
LR Java脚本编写方法
Copyright © 2011-2022 走看看