sinistapenguin
Technical User
Hi everyone
I am having a stab at creating a web application and have hit a sticking point.
I have a page which will (eventually) insert a record into the Order Line table.
It looks a bit like this:
StockCode----Qty----UnitPrice----Total
Code1---------2------10----------- ****
I want the page to calculate the total and display it where the **** is. I am currently using ASP w/ VBScript.
If possible I would like it to update this when the Qty field is changed, but if I need to submit the Qty etc back to the server to calculate the total I don't really mind.
The calculation itself isn't the real problem, it's how and where I insert the relevant code in order to get the result to display where I want it.
It should be simple because it's a single page, not even adding up repeating data entries!!
Any suggestions (or fully fledged solutions) gratefully received.
Thank
Ben
I am having a stab at creating a web application and have hit a sticking point.
I have a page which will (eventually) insert a record into the Order Line table.
It looks a bit like this:
StockCode----Qty----UnitPrice----Total
Code1---------2------10----------- ****
I want the page to calculate the total and display it where the **** is. I am currently using ASP w/ VBScript.
If possible I would like it to update this when the Qty field is changed, but if I need to submit the Qty etc back to the server to calculate the total I don't really mind.
The calculation itself isn't the real problem, it's how and where I insert the relevant code in order to get the result to display where I want it.
It should be simple because it's a single page, not even adding up repeating data entries!!
Any suggestions (or fully fledged solutions) gratefully received.
Thank
Ben