Paging Windows Azure Tables
This code shows how to page through data in Windows Azure tables by using continuation tokens.
The sample app allows you to add an arbitrary number of entities to a table and then view them three items at a time, with a "Next" hyperlink that takes you to the next page.
This code starts retrieving data at the right row:
query = query.AddQueryOption("NextPartitionKey", partitionToken).AddQueryOption("NextRowKey", rowToken);
and this code extracts the continuation tokens from the table service's HTTP response:
var res = query.Execute();
var qor = (QueryOperationResponse)res;
string nextPartition = null;
string nextRow = null;
qor.Headers.TryGetValue("x-ms-continuation-NextPartitionKey", out nextPartition);
qor.Headers.TryGetValue("x-ms-continuation-NextRowKey", out nextRow);