Disable postback at click on a button

后端 未结 10 600
名媛妹妹
名媛妹妹 2021-01-03 20:31

I want do disable postback after clicking a . I\'ve tried to do that by assigning onclick=\"return false\", but in the button doe

10条回答
  •  难免孤独
    2021-01-03 21:26

    onclick is used to wire up your server side events. You need to use the OnClientClick handler such as

提交回复
热议问题