返回数据

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="Tline.rzcnt.WebForm1" %>


<%--数据页面--%>
<html xmlns="http://www.w3.org/1999/xhtml">
<base target="_self">
<head runat="server">
<title></title>
<script type="text/javascript" language="javascript">
function dbclick_return_and_close(strid, strvalue) {
alert("执行该方法!");
var str = new Array(strid, strvalue);

window.returnValue = str;
window.close();
}
</script>
</head>
<body>
<form id="form2" runat="server">
<div>
<a href="#" οnclick="javascript:dbclick_return_and_close( '0', 'aaaaaaa');">点击这一行,带值返回到原页面</a>
</div>
</form>
</body>
</html>

 

<%--数据返回页面--%>
<%--<input id="txtActive" runat="server" readonly="readonly" />
<input type="button" id="selectActive" runat="server" οnclick="javascript: open_windows_and_get_selectedinfo('T_GetLine.aspx', 'ta.id', 'ta.name')" value="..." />
<asp:HiddenField ID="hfActive" runat="server" />
<script type="text/javascript">
function open_windows_and_get_selectedinfo(openwindow, control, control2) {
var str = window.showModalDialog(openwindow, window, "dialogWidth=740px;dialogHeight=600px;center=yes;help=no;resizable=no;status=no");
if (!str)
return;
document.getElementById(control).value = str[0];
document.getElementById(control2).value = str[1];
}
</script> --%>

转载于:https://www.cnblogs.com/999c/p/6150294.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值