ASP.Net double-click problem

前端 未结 6 1832
孤城傲影
孤城傲影 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 18:05

    Similar to Silky's client-side response, I usually make two buttons that look alike except that the second button is disabled and hidden. OnClientClick of the normal button swaps the display styles of the two buttons so that the normal button is hidden and the disabled button is shown.

提交回复
热议问题