how to get the data from a repeaterItem
Now it is displaying correctly, the user makes a selection in the dropdown types some text in the edit box then he hits the save buton located in the form.
How shall I get the values of the comboboxes and text boxes from the repeater control to save them in the data base?
I tried to loop thru the repater control items. Each repeater item (each row) has 3 controls which I assume are my 2 dropdown boxes and the edit box, but if I use RepeaterItem.Controls.Item(i) and try to cast them to DropDowList or EditBox respectivly the code bombs out.
How do I get the date out?
Do I have to add a method on the control itself to find the dropdownboxes by the name and have the value returned or how do you do it?
I also tried to AddHandler for the dropdown SlectedItemChanged in the user control. It gets called, it tells me the value but I don't have in the control the obeject that needs to be update so the value it's no use since I don't have the item it is suppose to update.
How do you guys usually do it? Thanks a lot.
Adri

