日期:2014-05-18 浏览次数:20560 次
<a href="B.aspx?ID= "<%=TextBox1.Text%> + " Target='_top'>" 跳转到B.ASPX页面 </a>
------解决方案--------------------
<script>
function goUrl()
{
var id=document.getElementById("TextBox1");
window.open("b.aspx?ID="+escape(id),"_top");
}
</script>
<a href='javascript:goUrl()'>Test</a>
------解决方案--------------------
<title>无标题页</title>
<script type="text/javascript">
function goUrl()
{
var id=document.getElementById("TextBox1").value;
this.location="b.aspx?ID="+escape(id)+"Target='_top'";
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<a href="javascript:goUrl()"> 跳转到B.ASPX页面 </a>
<asp:TextBox ID="TextBox1" runat="server" ></asp:TextBox></div>
</form>
</body>
</html>