finding child controls of Repeater

G

Guest

Hi,

I have a repeater object which is bound to a dataset, the repeater has one
item template which contains dropdowns, checklist, text boxes etc.
After the repeater has rendered the user can change the values in the child
controls and add new rows to the repeater.
The user then clicks save changes and I need to update the database with the
changes. I was thinking of looping through the datatables row collection and
checking the rowstate, then performing the necessary update.
My question is how can I update the dataset after the user makes changes? I
need a way to loop through or ref the child controls of the repeater, how do
i do this?
 
S

Scott Allen

Hi Neil:

Data binding in ASP.NET is one-way binding, unfortunately. You'll have
to loop through the repeater items and pull updated information from
the control to get the values to the database.

I have some code that might give you a start here:
In Search Of ASP.NET Controls
http://odetocode.com/Articles/116.aspx
 

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

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,817
Latest member
DicWeils

Latest Threads

Top