Disable postback at click on a button

后端 未结 10 626
名媛妹妹
名媛妹妹 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:18

    onClientClick="return false"
    

    That should do it! Onclick will refer to an ASP.net function, onClientClick will render as OnClick on the control in HTML.

提交回复
热议问题