Cannot Find Control ID in ControlParameter
I am trying to insert values from a textbox but I get an error that it cannot find the controlid in the controlparameter. The TextBox is inside a formview, which is inside a listview. The SqlDataSource is outside the ListView. My InsertButton_Click Method protected void InsertButton_Click(object sender, EventArgs e) { var ctrl = (Control)sender; var formview = (FormView)ctrl.NamingContainer; formview.ChangeMode(FormViewMode.Insert); SectionListView.DataSource = SectionDataSource; SectionListView.DataBind(); } The InsertItem Template <InsertItemTemplate> <tr style=""> <td> <div style="font-size