久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    <bdo id='gdTCP'></bdo><ul id='gdTCP'></ul>
  • <small id='gdTCP'></small><noframes id='gdTCP'>

    <tfoot id='gdTCP'></tfoot>
    <i id='gdTCP'><tr id='gdTCP'><dt id='gdTCP'><q id='gdTCP'><span id='gdTCP'><b id='gdTCP'><form id='gdTCP'><ins id='gdTCP'></ins><ul id='gdTCP'></ul><sub id='gdTCP'></sub></form><legend id='gdTCP'></legend><bdo id='gdTCP'><pre id='gdTCP'><center id='gdTCP'></center></pre></bdo></b><th id='gdTCP'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='gdTCP'><tfoot id='gdTCP'></tfoot><dl id='gdTCP'><fieldset id='gdTCP'></fieldset></dl></div>

        <legend id='gdTCP'><style id='gdTCP'><dir id='gdTCP'><q id='gdTCP'></q></dir></style></legend>
      1. 多個提交按鈕點擊問題?

        Multiple submit Button click problem?(多個提交按鈕點擊問題?)
        <legend id='tIyq5'><style id='tIyq5'><dir id='tIyq5'><q id='tIyq5'></q></dir></style></legend>
          <bdo id='tIyq5'></bdo><ul id='tIyq5'></ul>
              <tbody id='tIyq5'></tbody>
            <i id='tIyq5'><tr id='tIyq5'><dt id='tIyq5'><q id='tIyq5'><span id='tIyq5'><b id='tIyq5'><form id='tIyq5'><ins id='tIyq5'></ins><ul id='tIyq5'></ul><sub id='tIyq5'></sub></form><legend id='tIyq5'></legend><bdo id='tIyq5'><pre id='tIyq5'><center id='tIyq5'></center></pre></bdo></b><th id='tIyq5'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='tIyq5'><tfoot id='tIyq5'></tfoot><dl id='tIyq5'><fieldset id='tIyq5'></fieldset></dl></div>

            1. <small id='tIyq5'></small><noframes id='tIyq5'>

                • <tfoot id='tIyq5'></tfoot>
                • 本文介紹了多個提交按鈕點擊問題?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  我有一個表單,它在單擊提交按鈕時在 DB 中插入數據,但問題是當客戶端多次單擊按鈕時,它發送多個創建請求意味著同一數據的同一時間有多個按鈕單擊事件,但不能這樣.

                  I have a form which inserts data in DB on Submit button click but the problem is when client click the button multiple times its sends multiple create requests means multiple button click events for the same time of same data, which must not be.

                  當客戶端第一次單擊提交按鈕時,我嘗試禁用該按鈕,但此后它不會調用服務器單擊事件處理程序,也不會在禁用后觸發服務器單擊事件.

                  I tried to disable the button when client click the Submit button first time but after this it does not call server click event handler or not fire the server click event once it got disabled.

                  如何處理這個多次點擊問題..

                  How to handle this multiple click problem..

                  我使用以下代碼禁用按鈕

                  I used the following code to disable the button

                   <script type="text/javascript">
                       function checkAuth(obj)
                       {
                           if(Page_ClientValidate("ValidationGroupName"))
                              obj.disabled=true;      
                       }
                   </script>
                  
                          <asp:Button ID="btnSubmit" runat="server" Text="Submit" 
                  OnClick="btnSubmit_click" OnClientClick="checkAuth(this)" CssClass="FormButton" 
                  ValidationGroup="ValidationGroupName" />
                  

                  推薦答案

                  不要禁用按鈕,只是防止第二次提交.

                  Do not disable the button, just prevent the second submit.

                  這個小腳本可以完成這項工作,但它假設在某個時刻有回發.

                  this little script does the job but it assumes there is a postback at a certain moment.

                  var formhandler = function() {
                     var submit, isSubmit = false;
                     submit = function(){
                                  // flop and return false once by the use of operator order.
                      return isSubmit != (isSubmit = true);
                      };
                      return {
                         submit: submit
                      };
                  }(); // <-- use direct invcation to keep the internal variables "static"
                  

                  附上:

                     document.forms[0].onsubmit = formhandler.submit;    
                  

                     OnClientClick = "formhandler.submit()";
                  

                  這篇關于多個提交按鈕點擊問題?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Deleting a directory when clicked on a hyperlink with JAvascript.ASP.NET C#(單擊帶有 JAvascript.ASP.NET C# 的超鏈接時刪除目錄)
                  asp.net listview highlight row on click(asp.net listview 在單擊時突出顯示行)
                  Calling A Button OnClick from a function(從函數調用按鈕 OnClick)
                  ASP.net C# Gridview ButtonField onclick event(ASP.net C# Gridview ButtonField onclick 事件)
                  Adding OnClick event to ASP.NET control(將 OnClick 事件添加到 ASP.NET 控件)
                  ASP.NET OnClientClick=quot;return false;quot; doesn#39;t work(ASP.NET OnClientClick=return false;不工作)
                  <i id='gPiHe'><tr id='gPiHe'><dt id='gPiHe'><q id='gPiHe'><span id='gPiHe'><b id='gPiHe'><form id='gPiHe'><ins id='gPiHe'></ins><ul id='gPiHe'></ul><sub id='gPiHe'></sub></form><legend id='gPiHe'></legend><bdo id='gPiHe'><pre id='gPiHe'><center id='gPiHe'></center></pre></bdo></b><th id='gPiHe'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='gPiHe'><tfoot id='gPiHe'></tfoot><dl id='gPiHe'><fieldset id='gPiHe'></fieldset></dl></div>

                    <small id='gPiHe'></small><noframes id='gPiHe'>

                      • <bdo id='gPiHe'></bdo><ul id='gPiHe'></ul>
                          <tbody id='gPiHe'></tbody>

                        1. <tfoot id='gPiHe'></tfoot>
                            <legend id='gPiHe'><style id='gPiHe'><dir id='gPiHe'><q id='gPiHe'></q></dir></style></legend>
                          • 主站蜘蛛池模板: 亚洲国产高清在线观看 | 国产在线观看一区二区三区 | 亚洲在线| 色视频欧美 | 国产特级毛片aaaaaa | 精品视频一区二区 | 色999日韩| 国产精品污www一区二区三区 | 91日日| 91 在线| 久99久视频| 国产在线精品一区二区 | 亚洲精品免费在线观看 | 美日韩免费视频 | 久久久久九九九女人毛片 | 欧美一区二区三区在线播放 | 成人在线观看欧美 | 超碰成人在线观看 | 亚洲综合色视频在线观看 | 国产一区二区三区网站 | 蜜桃av一区二区三区 | 好婷婷网| 国产精品免费一区二区三区 | 99热激情| 日本一区二区高清视频 | 在线观看国产 | 国产精品美女久久久久久免费 | 国产aⅴ精品| 成人网av| 激情网站| 国产高清一区二区三区 | 美女国产一区 | 日韩综合网 | 国产一区久久 | 不卡的av一区 | 日韩在线视频一区 | 欧美精品欧美精品系列 | 亚洲精品一区二区网址 | 天堂在线1 | 99精品在线观看 | 久久久久久久一区二区三区 |