title: ObjectDataSource requires paging parameters for SelectCountMethod
body: <p>I have an ObjectDataSource control like this:</p>
  
  <pre><code>&lt;asp:ObjectDataSource ID="ObjectDataSource2" runat="server" EnablePaging="True" 
   MaximumRowsParameterName="maxRow" SelectCountMethod="howMuch" 
   SelectMethod="getData" StartRowIndexParameterName="startRow" 
   TypeName="BusinessObject"&gt;
  &lt;/asp:ObjectDataSource&gt;
  </code></pre>
  
  <p>and a class BusinessObject like this:</p>
  
  <pre><code>public class BusinessObject
  {
      public someTyp[] getData(int maxRow, int startRow)
      { /* some code */ }
      public int howMuch()
      { /* some code */ }
  }
  </code></pre>
  
  <p>I added parameters maxRow, startRow for getData method manually and it works well with GridView.
  Next, I'm using "Configure Data Source..." Task from ObjectDataSource visual designer. The option for SELECT is:
  getData(Int32 maxRow, Int32 startRow), returns someTyp[]
  and it's OK, but the next step is to configure these parameters, and the result is SelectParameters are added to ObjectDataSource:</p>
  
  <pre><code>&lt;SelectParameters&gt;
    &lt;asp:Parameter Name="maxRow" Type="Int32" /&gt;
    &lt;asp:Parameter Name="startRow" Type="Int32" /&gt;
  &lt;/SelectParameters&gt;
  </code></pre>
  
  <p>and it doesn't work now. I get exception telling that there is no method howMuch() with parameters Int32 maxRow, Int32 startRow.</p>
  
  <p>And my question is, why parameters maxRow, startRow aren't excluded from parameter's list for SelectCountMethod despite the fact that they are set as MaximumRowsParameterName and StartRowIndexParameterName. Shouldn't they be omitted as they are set as paging parameters?</p>
  
  <p>Thanks.</p>