'Caching' a large table in ASP.NET

Posted by TheNewGuy on Stack Overflow See other posts from Stack Overflow or by TheNewGuy
Published on 2010-05-19T15:24:28Z Indexed on 2010/05/19 15:30 UTC
Read the original article Hit count: 156

Filed under:
|
|

I understand that each page refresh, especially in 'AjaxLand', causes my back-end/code-behind class to be called from scratch... This is a problem because my class (which is a member object in System.Web.UI.Page) contains A LOT of data that it sources from a database. So now every page refresh in AjaxLand is causing me to making large backend DB calls, rather than just to reuse a class object from memory. Any fix for this? Is this where session variables come into play? Are session variables the only option I have to retain an object in memory that is linked to a single-user and a single-session instance?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about c#