Hi Scott,
Each nested control (i.e. the repeater within the formView) would have to
program its own update functions or the FormView would have to do that for
it. But if you only update the EditTemplate of the FormView without any
further processing of the child control then the child control would not
automatically update any data.
For example if you display a repeater within the EditItemTemplate that has
textBoxes for the user to enter data, you might want to process these entries
during the FormView.ItemUpdating event like this:
Protected Sub FormView1_ItemUpdating(ByVal sender as object, ByVal e as
FormViewUpdateEventArgs)
Dim repeater1 as Repeater= Ctype(Ctype(sender,
FormView).FindControl("repeater1"), Repeater)
‘loop through the Repeater.Items collection to find the controls
‘within each RepeaterItem and then update the database
End Sub
--
HTH,
Phillip Williams
http://www.societopia.net http://www.webswapp.com
"Scott at Cedar Creek" wrote:
Thanks...I understand what you're saying, but I'm trying to understand WHY.
So, you're saying that the repeater items (if updated) will automatically get
written to the table BECAUSE the repeater is located inside the EditTemplate?
If that's the case, life is going to be sweet!