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?
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?
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