bopo
01-13-2007, 05:51 PM
Hi people
Basically I want to add the values of two textboxes together, and then multiply that value via a number in a different textbox
here is similar code to mine
txttotalcost.Text = txtcost1 + txtcost2 * people
however, assume the following
txtcost1 = 10
txtcost2 = 10
people = 2
the obvious answer is 40, however it comes up with 30, its the same for all types of numbers.
Basically I want to add the values of two textboxes together, and then multiply that value via a number in a different textbox
here is similar code to mine
txttotalcost.Text = txtcost1 + txtcost2 * people
however, assume the following
txtcost1 = 10
txtcost2 = 10
people = 2
the obvious answer is 40, however it comes up with 30, its the same for all types of numbers.