title: Cannot Find Control ID in ControlParameter
body: <p>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.</p>
  
  <p>My InsertButton_Click Method</p>
  
  <pre><code>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();
  
      }
  </code></pre>
  
  <p>The InsertItem Template</p>
  
  <pre><code>&lt;InsertItemTemplate&gt;
      &lt;tr style=""&gt;
          &lt;td&gt;
             &lt;div style="font-size: .8em;"&gt;
                 &lt;asp:FormView ID="SectionFormView" runat="server" DataKeyNames="SectionItemID" DataSourceID="SectionDataSource"&gt;
                     &lt;ItemTemplate&gt;
                         &lt;asp:Button ID="InsertButton" runat="server" CommandName="Insert" Text="Insert" OnClick="InsertButton_Click" Font-Size="1.2em" /&gt;
                         &lt;asp:Button ID="CancelButton" runat="server" CommandName="Cancel" Text="Clear" Font-Size="1.2em" /&gt;
                         &lt;asp:Label ID="SectionItemLabel" runat="server" Text="SectionItem" Font-Bold="true" Font-Size="1.2em" /&gt;
                         &lt;asp:TextBox ID="SectionItemTextBox" runat="server" /&gt;
                         &lt;asp:Label ID="SectionItemSubLabel" runat="server" Text="SectionItem Label" Font-Bold="true" Font-Size="1.2em" /&gt;
                         &lt;asp:TextBox ID="SectionItemLabelTextBox" runat="server"/&gt;
  
                     &lt;/ItemTemplate&gt;
                 &lt;/asp:FormView&gt;
             &lt;/div&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
  &lt;/InsertItemTemplate&gt;
  </code></pre>
  
  <p>My SqlDataSource</p>
  
  <pre><code>&lt;asp:SqlDataSource ID="SectionDataSource" runat="server" ConnectionString="&lt;%$ ConnectionStrings:ORHP_Dev03182014ConnectionString %&gt;" SelectCommand="SELECT DISTINCT SectionItem,SectionItemLabel,SectionItemID FROM Core.SectionItem_Lkup"
                      InsertCommand="INSERT INTO Core.SectionItem_Lkup(SectionItem, SectionItemLabel) VALUES (@SectionItem, @SectionItemLabel)"&gt;
          &lt;InsertParameters&gt;
                  &lt;asp:ControlParameter ControlID="SectionItemTextBox" Name="SectionItem" PropertyName="Text" /&gt;
                  &lt;asp:ControlParameter ControlID="SectionItemLabelTextBox" Name="SectionItemLabel" PropertyName="Text" /&gt;
          &lt;/InsertParameters&gt;
   &lt;/asp:SqlDataSource&gt;
  </code></pre>