title: asp:ControlParameter access control in different asp:Content block (Master Pages)
body: <p>I am setting up an application with two content blocks: FiltersContent and MainContent.</p>
  
  <p>I want to use a Reports.master to style the filters and results into their own blocks. The problem is that when I try to use a  in the  of a , something like:</p>
  
  <pre><code>&lt;asp:SqlDataSource [...] &gt;          
        &lt;SelectParameters&gt;
          &lt;asp:ControlParameter ControlID="statusFilter" DefaultValue="-1" PropertyName="SelectedValue" /&gt;
          &lt;asp:ControlParameter ControlID="startDateFilter" DefaultValue="01/01/1990" PropertyName="Text" /&gt;
          &lt;asp:ControlParameter ControlID="endDateFilter" DefaultValue="01/01/2070" PropertyName="Text" /&gt;
        &lt;/SelectParameters&gt;
    &lt;/asp:SqlDataSource&gt;
  </code></pre>
  
  <p>It is cannot find the control producing a error like </p>
  
  <pre><code>Could not find control 'statusFilter' in ControlParameter ''.
  </code></pre>
  
  <p>As soon as I move the filter controls into the 'Main' </p>
  
  <pre><code>  &lt;asp:Content ContentPlaceHolderId="MainContent" ... &gt;
  </code></pre>
  
  <p>they work properly.</p>
  
  <p>So my question is: Is it possible to access the controls from a SqlDataSource in a different Content block?</p>