Displaying Calculation Results
I am making my first attempts at a web application and have elected (rightly or wrongly) to use ASP with VBScript.
I have an 'Order Line' page on which I want to display the total - ie. Qty X UnitPrice. I believe I have the code for doing the calculation:
<%
dim a,b,c
c= a+b
response.write "Your total is $"&c
%>
However, what I can't figure out is how to get the result to display in the correct place ie where the **** appears below:
Stock Code Qty UnitPrice Total
Code1 10 20.00 ******
Can anyone out there help me??
Thanks
Ben
Comments
Displaying Calculation Results
You can use this script:
<%
Dim b, d
b = 3
d = 2
total = (b) + (d) %>
Then in your main HTML put in:
<% Response.Write(total) %>
It only looks like you weren't nominating what to display eg the total
Here it is
You must me logged in to write a comment.