如何获取其它页面的返回值,通过文本框接收,在多次取得返回值时,自动累加并排除重复的
主页面要从其它页面获取返回值,显示到文本框里面,在多次取得返回值时,自动累加并排除重复的,我只能每次都刷新空间的值,无法累加,也无法排除重复的
我用的方法是这样的
主页面 a.aspx
<html>
<head runat="server">
<title>无标题页</title>
<script type="text/javascript" language="javascript">
function openwindow()
{
window.open('LeadersSearch.aspx?type=1','', 'height=600, width=400,left=200,top=50,scrollbars=yes');
}
</script>
</head>
<body>
<form id="form1" runat="server">
<input class="text_normal" style="width: 425px;" id="txtRenyuanname" runat="server" />
<input id="btnsel" runat="server" type="button" value="多人参加用,隔开" style="width: 110px"
class="btncss" onclick="openwindow()" />
</form>
</body>
<html>
返回值的页面b.asp
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title></title>
<link href="css/style1.css" type="text/css" rel="stylesheet" />
<base target="_self" />
</head>
<body>
<form id="form1" runat="server">
<div style="text-align: center; background-color: #beded5; font-size: 25px; font-weight: bold;
width: 99%;" id="tdtitle">
领导列表
</div>
<table width="99%" border="0">
<tbody>
<tr style="height: 1px">
<td>
</td>
</tr>
</tbody>
</table>
<table class="table_bar" id="Table5" cellspacing="0" cellpadding="2" width="99%">
<tbody>
<tr>
<td nowrap align="right" width="*">
<asp:Button CssClass="button_normal" ID="btnAddRen" runat="server" Text="选定确认" OnClick="btnAdd_Click" />
<asp:Button CssClass="button_normal" ID="btnReturn" runat="server" Text="返回" OnClick="btnReturn_Click" />
</td>
</tr>
</tbody>
</table>
<div>
<asp:GridView ID="gvwShow" OnRowDataBound="gvRowDataBound" CssClass="datagrid_normal"
AutoGenerateColumns="false" DataKeyNames="LeaderID" runat="server">
<SelectedRowStyle CssClass="datagrid_itemstyle_over" />
<AlternatingRowStyle BackColor="#EEEEEE" />
<RowStyle CssClass="datagrid_itemstyle_normal" />
<HeaderStyle CssClass="datagrid_headerstyle_normal" Font-Size="12px" Font-Bold="False"
HorizontalAlign="Center" VerticalAlign="Middle" />