title: controlparameter not found
body: <p>Error: Could not find control 'mytextfield' in ControlParameter 'mycontrolparam'.</p>
  
  <pre><code>&lt;asp:ControlParameter ControlID="mytextfield" Name="mycontrolparam" PropertyName="Text" Type="Int32" /&gt;
  </code></pre>
  
  <p>The error is because "mytextfield" is inside a panel control and I would need FindControl method to find it. But I want to find a quick solution if there is any, how to make mytextfield visible to the control parameter. The same code works on a different page but not on this one. Please keep in mind, I want to make minimum changes to the existing code. </p>
  
  <p>Here is similar code I copied over from Microsoft site.</p>
  
  <pre><code>&lt;asp:SqlDataSource id="Employees" runat="server"
    ConnectionString="&lt;%$ ConnectionStrings:Northwind%&gt;"
    SelectCommand="SELECT LastName FROM Employees WHERE Title = @Title"&gt;
    &lt;SelectParameters&gt;
      &lt;asp:ControlParameter Name="Title" 
        ControlID="DropDownList1"
        PropertyName="SelectedValue"/&gt;
    &lt;/SelectParameters&gt;
  &lt;/asp:sqldatasource&gt;
  </code></pre>
  
  <p>Want to mention: 'mytextfield' is a readonly textfield. It does work OK on the other page though.</p>