Problem with ObjectDataSource
Hello,
I'm using one ObjectDataSource just to enable pagination in a DataList.
The ObjectDataSource:
<asp:ObjectDataSource ID="ObjectDataSource1"
runat="server"
EnablePaging="true"
SelectCountMethod="GetGuestBookCount"
SelectMethod="GetGuestBook"
TypeName="myGuestBook" >
</asp:ObjectDataSource>
I have defined both methods (GetGuestBookCount & GetGuestBook), but "GetGuestBookCount" is never called, and "maximumRows" is always 0. Result? The page doesn't show any row.
What I'm doing wrong?
PS: I see that is working fine with a GridView, but I want to use the DataList instead of it. Is it possible?
|