Add empty row to repeater

H

Hans Kesting

Hi,

I want to edit an entire list on a single page, say a shopping list
where every 'item' consists of a name and an amount.
I don't know beforehand how many items will be needed.

Using a Repeater I can put a list of textboxes on the screen and fill
them with the (previously) stored list.
After a click on a "save" button I can read everything and store the
changed list.

But I'm not satisfied with the "add empty row" button. Currently it
reads the entire list (including "empty" rows which would normally be
ignored), adds an empty item to that list and rebinds the list to the
repeater. Is there a simpler way to add an extra (empty) row, without
writing so much specific code?

Hans Kesting
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,996
Messages
2,570,238
Members
46,826
Latest member
robinsontor

Latest Threads

Top