We help IT Professionals succeed at work.
Get Started

Gettings values from databound Repeater Item controls and changing them clientside

useless_eater
on
394 Views
Last Modified: 2009-12-16
I have implemented a shopping cart in ASP.Net that is entirely server side.  Items are displayed in repeater controls which are bound to datatables.  On postback I get the datatable from the repeater and keep it in the session object.  It currently posts back to the server whenever the user chooses to add or remove an item from their shopping cart, or if they edit the quantity of an item.  This is working great on a development machine, but can be a bit too slow when deployed on the internet.

My questions is...

If I click on a LinkButton in my Repeater Item to add an item to my basket, how do I modify a text box in the same repeater item so that it stores the quantity. E.g. if I hit "Add", the quantity should be set to 1, and an invisble check box is ticked to indicate that the item has been added.
Comment
Watch Question
Top Expert 2005
Commented:
This problem has been solved!
Unlock 1 Answer and 6 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE