WCF Paged Results & Data Export

Posted by Ben on Stack Overflow See other posts from Stack Overflow or by Ben
Published on 2010-04-13T23:58:28Z Indexed on 2010/04/14 0:03 UTC
Read the original article Hit count: 463

Filed under:
|
|

I've walked into a project that is using a WCF service for the data tier. Currently, when data is needed for a grid, all rows are returned and the results are bound to a grid and the dataset is stuffed into a session variable for paging/sorting/rebinding. We've already hit a max message size problem, so I'm thinking it's time to convert from fetch and cache to fetch only the current page.

Face value this seems easy enough, but there's a small catch. The user is allowed to export the entire result set at any point. This means that for grid viewing purposes fetching the current page is fine, but when they want to do an export, I still need to make a call for all data.

This puts me back into the max message size issue. What is the recommended approach for this type of setup?

We are currently using the wsHttpBinding...

Thanks for any assistance.

© Stack Overflow or respective owner

Related posts about wcf

Related posts about paging