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>
"
);
//
关键注意了,重定向父窗口
查看全文
相关阅读:
第十八课 顺序存储线性表的分析
第十七课 StaticList和DynamicList实现
第十六课 顺序存储结构的抽象实现
第十五课 线性表的顺序存储结构
第十四课 线性表的本质和操作
第十三课 类族结构的进化
第十二课 顶层父类的创建
第十一课 异常类构建
HDU 5773The All-purpose Zero
HDU 5755 Gambler Bo
原文地址:https://www.cnblogs.com/ringwang/p/1026947.html
最新文章
Luogu P4001 [ICPC-Beijing 2006]狼抓兔子
CF429E Points and Segments
BZOJ4883 [Lydsy1705月赛]棋盘上的守卫
Luogu P4042 [AHOI2014/JSOI2014]骑士游戏
BZOJ4423 [AMPPZ2013]Bytehattan
CF284E Coin Troubles
CF741C Arpa’s overnight party and Mehrdad’s silent entering
CF712E Memory and Casinos
grep的常用命令语法
ps&CPU
热门文章
UNIX和Linux信号
什么是云计算
数组队列C++实现
Linux内核2.6.14源码分析-双向循环链表代码分析(巨详细)
查看Linux各发行版本方法
nginx详解
Linux系统命令Top/free的使用及参数详解
网站压力测试工具集
第2课 C到C++的升级
第1课 学习C++的意义
Copyright © 2011-2022 走看看