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

前端 未结 3 1289
醉梦人生
醉梦人生 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:04

    Hook up OnClientClick to some javascript function that returns true or false. The postback occurs if it returns true else it is canceled.

      
    
    
      
    

提交回复
热议问题