I wonder if I can use onClick event handler and onserverclick event handler on the same button?
I want after just clicking once on the button to insert an order in the databas and at the same time send info (through hidden fields) to a credit card company, and the user must of course be taken to this company on submitting the order.See my code below. I tried but did not succeed. Do you have any solution?Feel free to edit my code.Thanks in advance.
<form id="Form1" method="post" runat="server">
<input type="text" id="Name" runat="server"></input>
<input type="submit" onClick="document.CardServ
" runat="server" value="Submit" Id="BtnSubmit">
<form Name="CardService" method="post" action="https://secure_host_name/cgi-bin/hlppay
<input type="hidden" Id="chargetotal" value='ViewState("TotalAmo
Private Sub BtnSubmit_ServerClick(ByVa
l sender As System.Object, ByVal e As System.EventArgs) Handles BtnSubmit.ServerClick
....'Procedure that inserts an order in database