久久久久久久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>
                          • 主站蜘蛛池模板: www.99re | 欧美操操操 | 免费精品久久久久久中文字幕 | 日韩精品区 | 亚州成人 | 中文字幕欧美一区二区 | 成人久久久久 | 亚洲二区在线 | 亚洲一二三区av | 精品亚洲永久免费精品 | av福利网| 国产精品小视频在线观看 | 日韩高清成人 | 亚洲精品久久久一区二区三区 | 国产在线精品一区二区三区 | 久久久精 | 日本精品一区二区三区在线观看视频 | 国产在线观看不卡一区二区三区 | 久久久久国产一区二区三区 | 天堂中文在线观看 | 免费在线观看一区二区 | 在线播放精品视频 | 视频二区 | 久久高清| 国产一区| 在线视频一区二区三区 | 国产精品久久久久久久久久免费看 | 精品久久久久久久久久久 | 可以在线看的黄色网址 | 中文字幕日韩欧美一区二区三区 | 日韩手机在线视频 | 91久久电影| 99久视频| 亚州一区二区三区 | 日韩视频免费看 | 欧美日一区 | 久草在线中文888 | 色资源av| www.黄色片视频 | 欧美日韩成人在线 | 久久国产亚洲精品 |