运用模态打开页面
然后把页面的返回值记录到SESSION
返回时刷新页面
读取SESSION
然后把页面的返回值记录到SESSION
返回时刷新页面
读取SESSION
解决方案 »
- sql语句
- 如何限制未登录用户对页面的访问
- 定义的字符串是一个正则,结果提示我错误
- bin文件里面的dll文件是自已编译的还是运行后自动生成的?
- 能者顶,分就是你的了!~~~~如何在.ascx中实现DropDownList的AutoPostBack属性
- 求助fileopen问题
- 在线等,不知道出了什么问题。
- 继续上面一问题,又出现新问题
- 在可以调用 OLE 之前,必须将当前线程设置为单线程单元(STA)模式。请确保您的 Main 函数带有 STAThreadAttribute 标记
- asp.net中能对language=vb的脚本关键字等用不同的颜色区别,对C#写的脚本能不能实现?
- 一段简单的连接数据库,并显示数据表的程序,不知道错在哪儿?
- 急,关于WEB.CONFIG的问题.
在页面里写一个js函数"'OpenerSub(id)"。这个函数用于打开模式窗口。具体类似 function OpenerSub(id)
{
var url = 'xxx.aspx?id_update='+id;
var vReturn = '';
var strFeature = 'height=300, width=400,...';
vReturn = window.showModalDialog(url,window,strFeature);
}
--
首先,
用个HTML按扭,在<head></head>之间加上
<script id="Infragistics" type="text/javascript">
<!--
function Move()
{
window.showModalDialog("Default.aspx?");
}// -->
</script>
将按扭的源码写成这样:
<input id="Button1" onclick="Move()" type="button" value="button" /></div>
以上点击即可弹出一个新页面其次,在弹出页面中添加一个按扭,在按扭事件里写
Response.Redirect("弹出窗体.aspx?ID=" + "1");最后,修改弹出窗体.aspx的代码为 protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
if (Request.Params["ID"] != null)
{
TextBox1.Text = Request.Params["ID"].ToString();
}
}
}OK了
myResult 可以根据需要选择类型
<html>
<head>
<title>Opener</title>
</head>
<body>
<input type="text" id="txtMy"/>
<button onclick="window.open('child.htm','add','menubar=0,height=100,width=400,statusbar=0,top=100,left=200')">打开添加页面</button>
</body>
</html> child.htm
<html>
<head>
<title>Son</title>
</head>
<body>
显示文本:<input type='text' id='txt'/><br/>
<button onclick="AddOp()">传递显示文本到Opener</button>
<script>
function AddOp()
{
opener.document.getElementById('txtMy').value=document.getElementById('txt').value;
self.close();
}
</script>
</body>
</html>
关键