here is the problem the multiplication wont happen. I get a zero for
the
<input type="hidden" name="productid$pcount" value="$p.Name"> $p.name</
td>
<td><input type="text" Name="Quantityid$pcount" value="$p.Quantity"
style="width:40px"></td>
<td><input type="hidden" name="priceid$pcount" value="$p.price">$$
{p.Price}</td>
#set ($totalprice = $p.price * $p.Quantity)
#set ($subtotal = $subtotal + $totalprice ) <td>${totalprice}</td>
$totalprice is always zero and subtotal aswell as a result of
$totalprice of course.
P is a class exposed through propertybag. P is for Products.
I have tried outputting the variables p.price and p.quantity to see if
there are values in them and I get results, they just wont get
multiplied for some reason I tried covnerting p.price.ToInteger *
p.quantity.Tointetger - it didnt error out but it didnt work either. I
tried converting the values and assigning them to individual
variables, still get 0 (zero)
Any help would be appreciated.
Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---