久久久久久久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. 多個(gè)提交按鈕點(diǎn)擊問題?

        Multiple submit Button click problem?(多個(gè)提交按鈕點(diǎn)擊問題?)
        <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>
                • 本文介紹了多個(gè)提交按鈕點(diǎn)擊問題?的處理方法,對大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  限時(shí)送ChatGPT賬號..

                  我有一個(gè)表單,它在單擊提交按鈕時(shí)在 DB 中插入數(shù)據(jù),但問題是當(dāng)客戶端多次單擊按鈕時(shí),它發(fā)送多個(gè)創(chuàng)建請求意味著同一數(shù)據(jù)的同一時(shí)間有多個(gè)按鈕單擊事件,但不能這樣.

                  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.

                  當(dāng)客戶端第一次單擊提交按鈕時(shí),我嘗試禁用該按鈕,但此后它不會(huì)調(diào)用服務(wù)器單擊事件處理程序,也不會(huì)在禁用后觸發(fā)服務(wù)器單擊事件.

                  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.

                  如何處理這個(gè)多次點(diǎn)擊問題..

                  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.

                  這個(gè)小腳本可以完成這項(xiàng)工作,但它假設(shè)在某個(gè)時(shí)刻有回發(fā).

                  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()";
                  

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

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

                  相關(guān)文檔推薦

                  Deleting a directory when clicked on a hyperlink with JAvascript.ASP.NET C#(單擊帶有 JAvascript.ASP.NET C# 的超鏈接時(shí)刪除目錄)
                  asp.net listview highlight row on click(asp.net listview 在單擊時(shí)突出顯示行)
                  Calling A Button OnClick from a function(從函數(shù)調(diào)用按鈕 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>
                          • 主站蜘蛛池模板: 日韩欧美国产精品 | 91视频日本| 中文字幕精品在线观看 | 成人一区二区在线 | 懂色av一区二区三区 | 白白色在线观看 | 伊人天堂网 | 国产成人综合在线 | 超碰国产在线 | 国产精品伦一区二区三级视频 | 天天摸天天操 | 96久久 | 黄色在线观看网址 | 精品欧美一区二区三区久久久 | 免费精品| 国产精品毛片久久久久久久 | 成人av一区二区三区在线观看 | 一区视频 | 免费性网站 | 国产福利网站 | 丁香综合网 | 四虎影院永久免费 | 久久久久久久综合 | 日本一区二区不卡视频 | 久久久免费观看 | 超碰97在线播放 | 精品在线一区 | 国产三级在线播放 | 免费在线观看av | 国产探花在线精品一区二区 | 国产午夜精品一区二区三区嫩草 | 国产精品免费一区二区三区 | www四虎影院 | 在线观看av的网站 | 日韩性生活视频 | 免费av大片 | 日韩精品极品 | 能看的av网站 | 久久久久女教师免费一区 | 欧美日韩国产在线播放 | 午夜视频免费在线观看 |