刚学.net,请问怎么在页面传值?
我在inpput.aspx这个页面有两个输入框,textbox1和textboxt2,
在display.aspx这个也面要获取在input.aspx页面输入的值,并显示在也面上,
该怎么做?谢谢各位大哥大姐!!
问题解决就给分
我在inpput.aspx这个页面有两个输入框,textbox1和textboxt2,
在display.aspx这个也面要获取在input.aspx页面输入的值,并显示在也面上,
该怎么做?谢谢各位大哥大姐!!
问题解决就给分
...
-------------------
在display.aspx中
Response.Write(Request.QueryString["txt1"].ToString());
<script language=javascript type=text/javascript>
if (check.match(patrn))
{
alert(""你输入的是小数!!"");
window.open(""display.aspx?text1=??&text2=???"");
}
</script>
我有两个输入框textbox1,textbox2
那么在text1=??和text2=??应该填什么呀?
window.open('display.aspx?text1=textbox1.value&text2=textbox2.value');
window.open('display.aspx?text1=' + textbox1.value + '&text2=' + textbox2.value);
Response.write("if("+text1+"."+text2+".value==null ){" +"<br>"))中
text1和text2获得的值还是textvox1.value和textbox2.value这写字符串,而不是我在textbox中输入的值,请教???