菜鸟提问.
Defalut.aspx的
cs文件里面
Response.Write( " <input id= 'Text1 ' type= 'text ' name= 'Text1 ' width=5px/> </div> ");
Response.Write( " <a href= 'default2.aspx '> 来了 </a> ");
在点了 来了 这个超级连接的时候,我想把文本输入框的值传给 default2.aspx页面,
怎么传啊?
不知道怎么得到输入框的内容,
不用javascript的。
------解决方案--------------------------------------------------------
或者把window.open替换为window.parent.location.href,就不是弹出一个窗口而是在自身打开一个窗口了
------解决方案--------------------------------------------------------
Response.Write( " <input id= 'Text1 ' type= 'text ' name= 'Text1 ' width=5px/> </div> ");
Response.Write( " <a href= 'default2.aspx ' onclick= 'this.href=\ "default2.aspx?value=\ "+Text1.value '> 来了 </a> ");