日期:2014-05-17  浏览次数:21206 次

在同一页面内,如何获得输入的文本框的值,并赋给一个asp的变量
在同一页面内,如何获得输入的文本框的值,并赋给一个asp的变量a,并且a可以在其他地方使用
如:
<input   name= "txtxh "   type= "text "   value= "0 "   size= "8 ">

怎么得到输入的值赋给a,然后在
<%    
b=a    
%>
使用

------解决方案--------------------
session
------解决方案--------------------
<input name= "txtxh " type= "text " value= "0 " size= "8 ">
<input name=赋值 type=button value=赋值 onclick= "document.all.fuzhi.src= 'aa.asp?a= '+documen.all.txtxh.value; ">
<%
b=a
%>

<IFRAME name=fuzhi id=fuzhi src= "aa.asp " width= "10 " height= "10 "> </IFRAME>
aa.asp的内容如下
<%
a=request( "a ")
if a <> ' ' then
session( "a ")=a
response.write( "a的最新值是: "&a)
end if
%>