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>
"
);
//
关键注意了,重定向父窗口
查看全文
相关阅读:
分布式页面静态化
采用rabbitMq消息推送方案
rabbitmq的使用介绍和注意事项目
redis面试题
Redis 使用入门
git使用介绍
JavaSE11(1)采用类
原型模式
javaSE 10(2)
javaSE 10
原文地址:https://www.cnblogs.com/ringwang/p/1026947.html
最新文章
HTML5缓存之 WebStorage
Centos7下zabbix安装与部署
使用urllib.request发送请求
HttpResponse 对象
随笔记
01 起步
xenserver 脚本学习之/opt/xensource/bin/xapi-wait-init-complete
xenserver 知识点记录
python学习--lambda map filter reduce yield
python学习--递归实例
热门文章
python学习--去除空格
python学习--列表操作实例1
xenserver 通过防火墙禁用xencenter VM控制台方法
xenserver 虚拟机响应时间对比
xenserver 主机本地磁盘IOPS 及 VMIOPS监控
xenserver 主机网卡使用情况
HashMap的数据结构
分布式注册(微服务)
MybatisPlas
面包屑
Copyright © 2011-2022 走看看