Peter,
The Save button is a single button and is not repeated, correct?
In the button's Click event, declare textbox variables that correspond to
the textboxes in each row of the repeater.
foreach(RepeaterItem rItem in rptRepeater.Items)
{
txtPort1 = (TextBox)rItem.FindControl("txtPortName");
txtPort2 = (TextBox)rItem.FindControl("txtPortPrice"); //Other
processing. }Where I've written 'other processing', you can take the
values in the textboxes, and save them back to the database. This will get
performed for each row of the repeater.
HTH
S.M. Altaf - MVP VB
--------------------------------------------------------------------------------
All that glitters has a high refractive index.
www.mendhak.com
"Peter Kirk" <> wrote in message
news:...
> Hi there
>
> I have some c# code which extracts a list of data (an array of Port
> objects) from a database, and I need to display this data on an asp, where
> the user can see and edit the data (and press a "save" button to write
> changes back to the database).
>
> I am using a "repeater" to list the Port items on the page, where some of
> the attributes of the Port objects are textboxes where the user can edit
> the data.
>
> My problem is the "save" button - for this I have an onclick handler, but
> how does the list of Port objects get supplied to the onclick method so I
> can write to the database?
>
> Thanks for any help,
> Peter
>
>