Hi. I have a form that posts to a payment platform. I'd like to have a button that submits the form but also runs some other code, e.g. set a property to hide elements on the page.
Can I do this? If so should I use ButtonType="ButtonType.Submit" plus an OnClick? This doesn't seem to work. Or should I use a ButtonType.Button and use some code to post the form? (If so how could I do that)?