• asp.net中不使用服务器控件,直接post 表单数据到server


    在使用大量脚本的时候,总会生成很多html,由于runat=server的控件都是保存状态的,因此选择不用服务器控件
    1<body >
    2        <form id="Form1" method="post" action="WebForm1.aspx">
    3            <!--<input type="text" id="txtResult"> <input type="button" onclick="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"]
  • 相关阅读:
    POJ 1995
    POJ 3233
    HDU 2815
    POJ 2417
    POJ 3243
    HDU 3579 线性同余方程组
    HDU 1573
    POJ 2115
    POJ 2891
    HDU 2035 不忍直视的水
  • 原文地址:https://www.cnblogs.com/jacktu/p/912484.html
Copyright © 2020-2023  润新知