hi
when user add some items into shopping cart, what method should i choose?
Session("OrderProduct") = Session("OrderProduct") & "[" & productid & "(" & qty & ")]"
means that
Session("OrderProduct") =
Session("OrderProduct") & [ProductName_A(9)][ProductName_B(20)][ProductName_C(1)]
but i am afraid some product name will be duplicated.
so i did
Session("OrderProduct")[ProductName_A_10000001(9)][ProductName_B_10000002(20)][ProductName_C10000003(1)]
*ProductName_A_10000001, 10000001 is product id.
if id is 10000001, coz the id is long. i think id and qty will have no error.
however if [ProductName_B_10000002(1)] changes to [02(1)], there have a error.
i hope guys understand what i write.
any good methods to me for refer!?
thanks a lot.
when user add some items into shopping cart, what method should i choose?
Session("OrderProduct") = Session("OrderProduct") & "[" & productid & "(" & qty & ")]"
means that
Session("OrderProduct") =
Session("OrderProduct") & [ProductName_A(9)][ProductName_B(20)][ProductName_C(1)]
but i am afraid some product name will be duplicated.
so i did
Session("OrderProduct")[ProductName_A_10000001(9)][ProductName_B_10000002(20)][ProductName_C10000003(1)]
*ProductName_A_10000001, 10000001 is product id.
if id is 10000001, coz the id is long. i think id and qty will have no error.
however if [ProductName_B_10000002(1)] changes to [02(1)], there have a error.
i hope guys understand what i write.
any good methods to me for refer!?
thanks a lot.