Is using ObjectDataSource a good practice?
<p>In my company few of the employees are using ObjectDataSource. Example snippet is :</p>

<pre><code>&lt;asp:ObjectDataSource ID="odsRequirement" runat="server" EnablePaging="True" 
                      MaximumRowsParameterName="intMaxRows"
                      SelectMethod="GetAll" 
                      StartRowIndexParameterName="intRowIndex" 
                      TypeName="MyNamespace.MyType" 
                      SortParameterName="SortString"
                      OnSelecting="odsRequirement_Selecting"
                      SelectCountMethod="GetAllCount"&gt;
    &lt;SelectParameters&gt;
        &lt;asp:Parameter Name="A" DefaultValue="null" /&gt;
        &lt;asp:Parameter Name="B" DefaultValue="null" /&gt;
        &lt;asp:Parameter Name="C" /&gt;
        &lt;asp:Parameter Name="D" /&gt;
        &lt;asp:Parameter Name="E" /&gt;
    &lt;/SelectParameters&gt;
&lt;/asp:ObjectDataSource&gt;
</code></pre>

<p>Will the SelectCountMethod <strong>GetAllCount</strong> be always fired after the SelectMethod <strong>GetAll</strong>?  And is there a better way we should be doing this?</p>

<p>Thanks in advance:)</p>
