Added: November/18/2004 at 3:38pm | IP Logged
|
|
|
I am trying to run a serverside function to delete an order & then redirect to another page. It does not seem to work. Below is ther relevant part of the page:
'Cancel the Order ************** Function CancelOrder() Dim SQLDelOrd SQLDelOrd = "DELETE tblOrders_temp.OrderID, * FROM tblOrders_temp WHERE (((tblOrders_temp.OrderID)=" & OrdID & "));"
objConn.Execute(SQLDelOrd)
Response.Clear Response.Redirect "MenuForRegisteredUsers.asp" End Function %>
<table Width = 100%> <tr> <td width="30%" valign="top" height="38"> </td> <td width="20%" valign="top" align=Center height="38"><BUTTON TYPE="SUBMIT" NAME="Sub" >View Your Order</BUTTON> </td> <td width="20%" valign="top" align=Center height="38"> <BUTTON TYPE="Button" onClick ="CancelOrder()"> Cancel - Back to Registered Accounts Menu</BUTTON> </td> <td width="30%" valign="top" height="38"> </td> </tr> </table> </FORM>
Thanks,
Alan
__________________
Alan
|