ASP.NET规定Form表单POST方法
1. send.aspx(前台)
<form id="form1" runat="server" action="receive.aspx" method=post>
<div>
<asp:Button ID="Button1" runat="server" Text="Button" />
<asp:TextBox ID="a" runat="server"></asp:TextBox>
</div>
</form>
2. receive.aspx.cs(后台)
string b = Ruquest.Form["a"]; |