How to run a javascript function before postback of asp.net button

前端 未结 3 1288
醉梦人生
醉梦人生 2020-12-28 19:48

I have an asp.net button which is runat server, there is a function handle that postback of button onclick.

How can I display a \"loading ...\" word in

3条回答
  •  盖世英雄少女心
    2020-12-28 20:00

    Look at OnClientClick, you can add a call to a js function, or inline JS there.

    Or you can wire into the button with JQuery and display a modal dialog with an async callback.

提交回复
热议问题