一个Textbox,一个Button,想要实现点击Button时,在新窗口打开另一个页面(页面地址后面加上?name=“Textbox中的文本”,如何实现?
2 回答
慕的地6264312
TA贡献1817条经验 获得超6个赞
button_click里写 Response.Write("<script>window.open("另个页面.aspx?name="+Server.UrlEncode(Textbox.text),''_blank'')</script>");
30秒到达战场
TA贡献1828条经验 获得超6个赞
你不用服务器控件就可以了 onclick=windows.open('页面地址?name='+this.value,,'_blank,'' ,true)
- 2 回答
- 0 关注
- 981 浏览
添加回答
举报
0/150
提交
取消