Reputation: 57252
I have an ObjectDataSource, which runs queries against a system that uses a token for paging.
On the first call, say to get the first 10 results, I get this token back from the server, and I should use it again in subsequent calls, e.g. to get results from 11 to 20.
Is there a way I can configure the ObjectDataSource to use such a token?
Upvotes: 0
Views: 108
Reputation: 2851
If, say, you have your ObjectDataSource defined like this:
<asp:objectdatasource
id="ObjectDataSource1"
runat="server"
SelectMethod="GetData"
TypeName="Company.DataManager" />
You can then define the Company.DataManager type and its GetData method so that is receives the token on the 1st time, stores it and then passes it on (in the form of a parameter of some kind) to the system you query data from.
Upvotes: 0