62,254
社区成员
发帖
与我相关
我的任务
分享<div>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<a href='#' onclick="openwin()">链接 </a>
</div>
window.open ("aboutUs.aspx?id="+strValue+"", "newwindow", "width=500, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no") [Quote=引用 13 楼 hanglp 的回复:]string str= "123456";
Response.Redirect("aaa.aspx?id="+str);
另一页面取值
Request.QueryString["id"];Request.QueryString["id"]
<script language="javascript" type="text/javascript">
function openwin() {
var strValue=document.getElementById("TextBox1").value;
self.location="default3.aspx?id="+strValue+"";
}
</script>
<div>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<a href='#' onclick="openwin()">链接 </a>
</div>