There's no 'button click event' as such in ASP. What you need to do is create an HTML form with a 'submit' type button that will post the content of the form to an ASP script.
e.g.
<form id="UserLoginForm" method="post" action="UpdateOrder.asp">
Then, create your ASP handler (in the above example, 'UpdateOrder' to retrieve the values of the form and update the database. Have a look at this spaghetti for an example of what that could look like
http://stackoverflow.com/questions/7880908/asp-update-database-insert-if-does-not-exist[
^]
Unless you absolutely have no other option, I strongly suggest using ASP.Net or even better, 'MVC .Net'. I have painful memories of ASP, working in MVC is an absolute pleasure in comparison!