Skip to Content
avatar image
Former Member

Cancel submit

Hi,

i want to cancel the submit of my bsp page when i click a htmlb button. My goal is when i click the button, i show a popup which ask if you wants to make the action. If yes, i submit, if no, i cancel

Thanks

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    May 26, 2004 at 01:13 PM

    ok, i've found.

    in the onClientClick of the button, i wrote :

    onClientClick="if (!confirm_validate()) {htmlbevent.cancelSubmit=true;}"

    confirm_validate is a javascript function which call a confirm dialog box and return what user has choose.

    Add comment
    10|10000 characters needed characters exceeded