1
<
body
>
2 < form id ="Form1" method ="post" action ="WebForm1.aspx" >
3 <!-- <input type="text" id="txtResult"> <input type="button" οnclick="TestAjax();" value="abc"> -->
4 < input name ="cmd" value ="abc" type ="text" size ="20" >
5 < input type ="submit" >
6
7 </ form >
8 </ body >
2 < form id ="Form1" method ="post" action ="WebForm1.aspx" >
3 <!-- <input type="text" id="txtResult"> <input type="button" οnclick="TestAjax();" value="abc"> -->
4 < input name ="cmd" value ="abc" type ="text" size ="20" >
5 < input type ="submit" >
6
7 </ form >
8 </ body >
在server端接收post的数据:
Request.Form["cmd"]