views:

378

answers:

1

I have a asp:listview which uses the SelectedValue of the FormView.

I have editing working with the listview fine, and insert will insert a record but it doesnt insert the SelectedValue of the parent FormView...

What am I missing?

A: 

I added this

   protected void ProposalAddressListView_ItemInserting(object sender, ListViewInsertEventArgs e)
    {
        e.Values[" My FormView Selected Value "] = MyFormView.DataKey.Value;
    }

Update: Just found similar question, ListView with LINQ Datasource insert template

Paul Rowland