Click to See Complete Forum and Search --> : I need help on Datalist-Urgent


vinayvarma
April 4th, 2006, 03:09 PM
Hi,
im doing some work on carting, ive added some element to cart-datalist like;
Service Name : Amount
service1 : 599$
service2 : 199$
service3 : 199$
total: 997$

If i am going to delete/remove service1, it is removed, but amount of service2 (199$) has to be get replaced with 599$, plz would u tell me how to do this, if u have some coding on this plz send it vinay.g.varma@gmail.com

hansipet
April 5th, 2006, 03:36 AM
Which datalist?

vinayvarma
April 5th, 2006, 12:58 PM
im doing some work on carting, ive added some element to datalist ex:
Service Name : Amount
service1 : 599$
service2 : 199$
service3 : 199$
total: 997$

If i am going to delete/remove service1, it is removed, but amount of service2 (199$) has to be get replaced with 599$, plz would u tell me how to do this, if u have some coding on this plz send it vinay.g.varma@gmail.com

falc0n
April 5th, 2006, 03:24 PM
Hello,
I'm not sure if I understood well what's your point.
You've got a list like that:
service1 : 599$
service2 : 199$
service3 : 199$
total: 997$

and after removing service1, you want your list to look like
service2 : 599$
service3 : 199$
total: 798$,
isn't it?

If so, you just have to remove the name of service1, then move up all service names and delete last amount of the list. Total amount is easy to calculate :)