zoukankan      html  css  js  c++  java
  • Asp.net button防止点击多次数据提交

    

    <!DOCTYPE html>

    <html xmlns="http://www.w3.org/1999/xhtml">

    <head runat="server">

    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>

        <title></title>

        <script src="jquery-1.5.min.js"></script>

        <script>

            function btnServerSaveClick() {

                $("#btnSave").val("正在提交数据...");

                $("#btnSave").attr("disabled", "disabled");

                var ClientBtnSaveID = '<%=btnServerSave.ClientID %>';

                $("#" + ClientBtnSaveID + "").click();

            }

        </script>

    </head>

    <body>

        <form id="form1" runat="server">

        <div>

            <div style="display:none">

            <asp:Button ID="btnServerSave" runat="server" Text="Button" OnClick="btnServerSave_Click" />

                </div>

            <input type="button" value="保存" id="btnSave" onclick="btnServerSaveClick();" />

        </div>

        </form>

    </body>

    </html>

  • 相关阅读:
    超级楼梯
    hdu1040
    hdu2033(惭愧)
    hdu2032杨辉三角
    hdu1013Digital Roots
    hdu2031
    Linux信号(signal) 机制分析
    android init重启service(进程)
    [android] init进程 .rc文件中service、action的parsing
    oom_adj
  • 原文地址:https://www.cnblogs.com/twodog/p/12140424.html
Copyright © 2011-2022 走看看