I am writing a shopping basket and want to basket total to be updated everytime someone changes the quantity without having to click on a 'update basket' button.
So I have made 'Autopostback' true for each quantity field. The quantity fields are added dynamically so I don't know how many there will be and I want to know is there a way to capture the changes without writing a onchange event for each button.
I.e. can I loop through the form and update the quantities on postback, my attempts so far have failed as I can't work out how to run the code on postback with a button triggering the event.
So I have made 'Autopostback' true for each quantity field. The quantity fields are added dynamically so I don't know how many there will be and I want to know is there a way to capture the changes without writing a onchange event for each button.
I.e. can I loop through the form and update the quantities on postback, my attempts so far have failed as I can't work out how to run the code on postback with a button triggering the event.