ASP.Net double-click problem

前端 未结 6 1798
孤城傲影
孤城傲影 2020-12-02 17:27

having a slight problem with an ASP.net page of mine. If a user were to double click on a \"submit\" button it will write to the database twice (i.e. carry out the \'onclick

6条回答
  •  有刺的猬
    2020-12-02 17:55

    I have solved this by setting a hidden field on the client click before hitting the server.

    Then in the server I check the hidden field and if the value is for example something 'FALSE' that might mean I can or cannot of the action.

提交回复
热议问题